Hi community!
During these days I have been setting up a pipeline in order to run our test cases in azure devops. After finish with forementioned activity, I realized that when I run our automated test cases via command line, practically all are failing, but if I do same action via Katalon Studio IDE, all TC run properly. After digging more over this topic, I figured out that via command line TC run more faster than via IDE and in addition to it, apparently smart wait feature is not enabled to run via command line. So, in this context I did the following to overcome these issues:
1- Stablishing a hardcoded delay between actions of 2 secs (Via IDE configurations)
2- Defining waits and delays that must be performed before the actions that are failing. For example:
*WebUI.delay(10)*
*WebUI.waitForElementPresent(findTestObject('Object Repository/Web/Transf/Page_Transferencias en el pas/input_PIN_ctl00MainContentctl03ctl10PinTextBox'), *
* 10)*
*WebUI.waitForElementVisible(findTestObject('Object Repository/Web/Transf/Page_Transferencias en el pas/input_PIN_ctl00MainContentctl03ctl10PinTextBox'), *
* 10)*
*WebUI.waitForElementClickable(findTestObject('Object Repository/Web/Transf/Page_Transferencias en el pas/input_PIN_ctl00MainContentctl03ctl10PinTextBox'), *
* 10)*
After made those changes test cases are running properly via command line, but it takes so much time to finish. So, in this situation it came to my mind following questions:
1- Am I following the best approach to overcome this situation?
2- Is it possible to enable smart wait feature to executions via command line?
3- Is it possible to define this delay between actions directly as a parameter of command line execution?. I am asking this because my idea is to only consider this delay for command line executions and not for IDE runs (Nowadays I have to change this setup manually)
Thank you in advance!!
Mariano,