If statement works in Katalon Studio, but not in Jenkins slave


#1

Hi,

The following test executes in IE if I use Studio Katalon in a Jenkins slave, but it doesn’t work if I run the job from the Jenkins master.

It doesn’t find the object after the if.

Any help is welcome.

WebUI.openBrowser(’’)

WebUI.maximizeWindow()

WebUI.navigateToUrl(GlobalVariable.signin_url)

if ( WebUI.verifyElementPresent(findTestObject(‘Object Repository/My_page/input_Username_username’), 4, FailureHandling.OPTIONAL)==true)
{

WebUI.waitForElementPresent(findTestObject(‘Object Repository/My_page/input_Username_username’), 3)

WebUI.setText(findTestObject(‘Object Repository/My_page/input_Username_username’), ‘myuser’)

‘Specify the password’
WebUI.setEncryptedText(findTestObject(‘Object Repository/My_page/input_Password_password’), ‘my password’)

‘Click on signin’
WebUI.click(findTestObject(‘Object Repository/My_page/button_Sign in’))

}

WebUI.click(findTestObject(‘Object Repository/My_page/myObject’))

I was wondering if all this is because when I execute with slave IE is not opening, and this mode doesn’t work very well for this specific browser.

Any help is welcome.