Hello Team,
Because of the IT policy in an organization where I am working the test environment sites which I am testing can be only accessed by entering a password. To execute test cases on these test environment sites all of my Test Cases start with steps to enter the password and then doing the normal test operation. Every test script I have contains these steps. Because of these steps, I am not able to run the same test script on the Prod environments which are not hidden under password. I was wondering if there is an ability in Katalon to dynamically set within the Execution Profile is âTEST1â or âTEST2â execute these steps first else just execute normal test script?
Sample test Steps :
Step 1 : WebUI.openBrowser(ââ)
Step 2 : WebUI.maximizeWindow()
Step 3 : WebUI.navigateToUrl(GlobalVariable.URL_ADMIN) /Going to Admin URL/
Step 4 : WebUI.setText(findTestObject(âShop_Login_Page/Password_Fieldâ), GlobalVariable.Pass) /Entering Password, There is no username here/
Step 5 : WebUI.click(findTestObject(âShop_Login_Page/Enter_Buttonâ)) /Clicking on Enter button/
Step 6 : WebUI.navigateToUrl(GlobalVariable.URL_DIRECT_PRODUCT) /*Now going to the Test URL where the testing will be performed */
From Step 1 to Step 5 the script is basically authenticating itself on the test environment and from Step 6 it is going to do test execution.