Facing Problem on integrating Katalon project on Azure DevOps


#1

I am facing problem with katalon studio version 7.0.7 while integrating Katalon project on Azure DevOps. I have follow this doc : https://docs.katalon.com/katalon-studio/docs/azure-devops-extension.html. But I am getting error on Katalon Task , please check log file I attached and share me a solution.5.txt (205.4 KB)


#2

Can you run your project on GUI mode?. I don’t see the open browser step in your script.


#3

Yes, I can run my project in GUI Mode. In Katalon, I have designed cases in BDD framework. I have designed script on Hook level to open browser. Here is the code written in Hook file :

@Before
def beforefeature(){
def dr = new MultipleDriver()
WebDriver driver = dr.invokedriver()
DriverFactory.changeWebDriver(driver)
WebUI.maximizeWindow()

Code written in Multiple driver class is :
def invokedriver(){
Map<String, Object> prefs = new HashMap<String, Object>();
prefs.put(“profile.default_content_setting_values.notifications”, 1);
prefs.put(“profile.default_content_setting_values.infobars”, 2);
System.setProperty(“webdriver.chrome.driver”, ‘Files/chromedriver.exe’)

	ChromeOptions options = new ChromeOptions()
	options.addArguments("--use-fake-ui-for-media-stream")
	options.setExperimentalOption("prefs", prefs);
	options.setExperimentalOption("useAutomationExtension", false);
	options.setExperimentalOption("excludeSwitches",Collections.singletonList("enable-automation"));

	WebDriver driver = new ChromeDriver(options)
	return driver

#4

Can any one please help me out on above issue?


#5

@anushree.gen
Can you run your project on CLI mode (Katalon Engine) on your local machine


#6

@quile
I can run project on CLI mode (Katalon Engine) in local machine. But, I am getting same issue on local also as above


#7

@quile and @Thong Please help me on above issue asap


#8

HI @anushree.gen,

At the log file, we found that this failure reason:

c.k.k.c.c.keyword.CucumberReporter       - ? SCENARIO To verify when user signup as a teacher FAILED.
2019-11-07T12:44:20.7497809Z Reason:
2019-11-07T12:44:20.7498021Z com.kms.katalon.core.exception.StepFailedException: Unable to verify object 'Object Repository/CommonXPath/IDProperties' is visible
2019-11-07T12:44:20.7498217Z 	at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:64)
2019-11-07T12:44:20.7498439Z 	at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:26)
2019-11-07T12:44:20.7498648Z 	at com.kms.katalon.core.webui.keyword.builtin.VerifyElementVisibleKeyword.verifyElementVisible(VerifyElementVisibleKeyword.groovy:97)
2019-11-07T12:44:20.7499135Z 	at com.kms.katalon.core.webui.keyword.builtin.VerifyElementVisibleKeyword.execute(VerifyElementVisibleKeyword.groovy:67)
2019-11-07T12:44:20.7499328Z 	at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:60)
2019-11-07T12:44:20.7499489Z 	at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.verifyElementVisible(WebUiBuiltInKeywords.groovy:372)
2019-11-07T12:44:20.7499706Z 	at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$verifyElementVisible.call(Unknown Source)
2019-11-07T12:44:20.7500048Z 	at stepDefinition.SignUp_Teacher.user_is_present_on_login_page(SignUp_Teacher.groovy:67)
2019-11-07T12:44:20.7500213Z 	at ?.user is present on login page(d:/a/1/s/Include/features/UserStory1/TC1_Verify_Signing_Up_As_Teacher.feature:4)
2019-11-07T12:44:20.7500748Z Caused by: com.kms.katalon.core.webui.exception.BrowserNotOpenedException: Browser is not opened
2019-11-07T12:44:20.7500939Z Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
2019-11-07T12:44:20.7501114Z System info: host: 'fv-az689', ip: '10.1.0.4', os.name: 'Windows Server 2016', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_181'
2019-11-07T12:44:20.7501309Z Driver info: driver.version: unknown
2019-11-07T12:44:20.7501468Z 	at com.kms.katalon.core.webui.driver.DriverFactory.verifyWebDriverIsOpen(DriverFactory.java:772)
2019-11-07T12:44:20.7501656Z 	at com.kms.katalon.core.webui.driver.DriverFactory.verifyWebDriver(DriverFactory.java:757)
2019-11-07T12:44:20.7501980Z 	at com.kms.katalon.core.webui.driver.DriverFactory.getWebDriver(DriverFactory.java:743)
2019-11-07T12:44:20.7502162Z 	at com.kms.katalon.core.webui.common.WebUiCommonHelper.findWebElements(WebUiCommonHelper.java:712)
2019-11-07T12:44:20.7502323Z 	at com.kms.katalon.core.webui.common.WebUiCommonHelper.findWebElement(WebUiCommonHelper.java:1109)
2019-11-07T12:44:20.7502516Z 	at com.kms.katalon.core.webui.keyword.internal.WebUIAbstractKeyword.findWebElement(WebUIAbstractKeyword.groovy:27)
2019-11-07T12:44:20.7502866Z 	at com.kms.katalon.core.webui.keyword.builtin.VerifyElementVisibleKeyword$_verifyElementVisible_closure1.doCall(VerifyElementVisibleKeyword.groovy:78)
2019-11-07T12:44:20.7503178Z 	at com.kms.katalon.core.webui.keyword.builtin.VerifyElementVisibleKeyword$_verifyElementVisible_closure1.call(VerifyElementVisibleKeyword.groovy)
2019-11-07T12:44:20.7503516Z 	at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:20)
2019-11-07T12:44:20.7503862Z 	at com.kms.katalon.core.webui.keyword.builtin.VerifyElementVisibleKeyword.verifyElementVisible(VerifyElementVisibleKeyword.groovy:97)
2019-11-07T12:44:20.7504026Z 	at com.kms.katalon.core.webui.keyword.builtin.VerifyElementVisibleKeyword.execute(VerifyElementVisibleKeyword.groovy:67)
2019-11-07T12:44:20.7504220Z 	at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:60)
2019-11-07T12:44:20.7504400Z 	at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.verifyElementVisible(WebUiBuiltInKeywords.groovy:372)
2019-11-07T12:44:20.7504569Z 	at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$verifyElementVisible.call(Unknown Source)
2019-11-07T12:44:20.7504744Z 	at stepDefinition.SignUp_Teacher.user_is_present_on_login_page(SignUp_Teacher.groovy:67)
2019-11-07T12:44:20.7504889Z 	at cucumber.runtime.Utils$1.call(Utils.java:26)
2019-11-07T12:44:20.7505081Z 	at cucumber.runtime.Timeout.timeout(Timeout.java:16)
2019-11-07T12:44:20.7505396Z 	at cucumber.runtime.Utils.invoke(Utils.java:20)
2019-11-07T12:44:20.7505820Z 	at cucumber.runtime.java.JavaStepDefinition.execute(JavaStepDefinition.java:48)
2019-11-07T12:44:20.7506128Z 	at cucumber.runtime.PickleStepDefinitionMatch.runStep(PickleStepDefinitionMatch.java:50)
2019-11-07T12:44:20.7506356Z 	at cucumber.runner.TestStep.executeStep(TestStep.java:55)
2019-11-07T12:44:20.7506535Z 	at cucumber.runner.TestStep.run(TestStep.java:42)
2019-11-07T12:44:20.7506733Z 	at cucumber.runner.PickleStepTestStep.run(PickleStepTestStep.java:53)
2019-11-07T12:44:20.7506910Z 	at cucumber.runner.TestCase.run(TestCase.java:47)
2019-11-07T12:44:20.7514388Z 	at cucumber.runner.Runner.runPickle(Runner.java:44)
2019-11-07T12:44:20.7514640Z 	at cucumber.runtime.Runtime.runFeature(Runtime.java:120)
2019-11-07T12:44:20.7514815Z 	at cucumber.runtime.Runtime.run(Runtime.java:106)
2019-11-07T12:44:20.7514954Z 	at cucumber.api.cli.Main.run(Main.java:35)
2019-11-07T12:44:20.7515115Z 	at cucumber.api.cli.Main$run.call(Unknown Source)
2019-11-07T12:44:20.7515741Z 	at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$_runFeatureFile_closure1.doCall(CucumberBuiltinKeywords.groovy:76)

that means object:
Please check your script at: ‘Object Repository/CommonXPath/IDProperties’ does not visible on your page at class SignUp_Teacher, line: 67.

Thanks


#9

@duyluong The above error is occurring because Browser is not opened, while executing script in CLI mode.

2019-11-07T12:44:20.7500748Z Caused by: com.kms.katalon.core.webui.exception.BrowserNotOpenedException: Browser is not opened
2019-11-07T12:44:20.7500939Z Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
2019-11-07T12:44:20.7501114Z System info: host: ‘fv-az689’, ip: ‘10.1.0.4’, os.name: ‘Windows Server 2016’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_181’
2019-11-07T12:44:20.7501309Z Driver info: driver.version: unknown

Thanks


#10

@duyluong @quile @Thong Please help me out on above issue asap