Thursday 24 May 2018

How to download test cases from ALM/QC TestLab folder

There is no direct option to download all the test cases from ALM under specific folder from Test Lab. Though we can download single test case at a time from export option available in TestLab, it is time consuming if we want to download 100's of test cases in a short span of time.

Writing SQL query in the ALM under "Dashboard->Analysis View" with Excel report would solve our problem and can download all test cases in seconds/minutes

Following SQL queries needs to be added in excel report, and upon executing these queries would generate excel file with relevant information we are looking for.

It is basically 2 way approach as there is no option to provide the folder path in the SQL query

1. Find out the absolute path of required folder path in TestLab

''Finding actual folder path from the absolute path
select in_cf.AL_ITEM_ID, sys_connect_by_path( in_cf.AL_DESCRIPTION, '\') PTH, in_cf.AL_ABSOLUTE_PATH as "ABS Path"
     from ALL_LISTS in_cf connect by prior in_cf.AL_ITEM_ID = in_cf.AL_FATHER_ID
     start with in_cf.AL_FATHER_ID = 0

''Finding absolute path from Test Lab
SELECT  AL_DESCRIPTION, /* Level3 Folder Name */ AL_ABSOLUTE_PATH
FROM All_Lists

2. Pick up the absolute path from the above query and pass that in the following query and execute the report to generate excel file with the test cases.
You can pass required fields though in the query, in below I have only provided basic fields which are required in test case.

'''Downloading testcases from Test Lab with absolute path
SELECT
ALL_LISTS.AL_DESCRIPTION as "Folder Name" /*Test Plan Folder.Name*/,
TEST.TS_TEST_ID as "Test ID" /*Test.Test ID*/,
TEST.TS_NAME as "Test Name" /*Test.Test Name*/,
TEST.TS_STATUS as "Status" /*Test.Status*/,
TEST.TS_TYPE as "Test Case Type" /*Test.Status*/,
TEST.TS_RESPONSIBLE as "Tester" /*Test.Designer*/,
TEST.TS_DESCRIPTION as "Test Description"/*Test.Description*/,
DESSTEPS.DS_STEP_NAME as "Test Step Name" /*Test Step.Step Name*/,
DESSTEPS.DS_DESCRIPTION as "Step Description"/*Test Step.Description*/,
DESSTEPS.DS_EXPECTED as "Expected Results" /*Test Step.Expected*/
From TEST
Join ALL_LISTS On TEST.TS_SUBJECT = ALL_LISTS.AL_ITEM_ID
Join DESSTEPS On TEST.TS_TEST_ID=DESSTEPS.DS_TEST_ID
Where All_Lists.AL_ABSOLUTE_PATH like'AAAAAPAAMAAIAAHAAD%'
ORDER BY TEST.TS_TEST_ID, DESSTEPS.DS_STEP_ORDER

Tuesday 8 May 2018

Enable "Connections" tab in IE browser to change the proxy

Issue:
Due to corporate policies or accidentally sometimes in IE browser "Connections" tab would be disabled.

If you enable the policy, users are prevented from seeing and changing connection and proxy settings.

If you disable this policy or do not configure it, users can see and change these settings.

When you set this policy, you do not need to set the following policies for the Content tab, because this policy removes the Connections tab from the interface:

"Disable Internet Connection Wizard"
"Disable changing connection settings"
"Prevent changing proxy settings"
"Disable changing Automatic Configuration settings"

Path: IE browser Tools->Internet Options->Connections

Solution:
Navigate to "Registry Editor" window and follow the path to change values.

Registry Hive HKEY_LOCAL_MACHINE or HKEY_CURRENT_USER
Registry Path Software\Policies\Microsoft\Internet Explorer\Control Panel
Value Name ConnectionsTab
Value Type REG_DWORD
Enabled Value 1
Disabled Value 0




Thursday 3 May 2018

SAP CBTA - Component Based Test Automation - technologies supports

SAP CBTA( Component Based Test Automation) is SAP tool which supports specifically SAP stack mentioned in below

Supports Recording and execution for:

  • SAP GUI
  • SAP CRM based on HTMLB (Webcuif) :  7.0 SP12+, 7.0 EHP1 SP8+, 7.0 EHP2 SP2+, 7.0 EHP3
  • SAP Web Dynpro  : 7.02 SP5+, 7.30 SP1+, 7.31 SP10+, 7.40 SP5+ 
  • SAP Java Web Dynpro:  7.02 SP13+ ,7.30 SP1+, 7.31 SP10+, 7.40 SP5+
  • SAP UI5 / FIORI
  • SAP Portal (execution supported, the recording need some manual adjustment when the ids are not stable)  : only version 730 SP9 supported. Other versions may work, without guaranty nor support