How to run mobile automation in jenkins?

Iam facing issue while ruuning mobile test in jenkins.

Hi,

Can you capture for me the screenshot showing ‘Drivers’ folder in your project folder? I need to know which files in there.

Thanks

Hi,

I have removed desired capabilities that i configured,but i still get the same issue in jenkins http://prntscr.com/flurm6

You don’t need to set desired capabilities for mobile in script, Katalon Studio will do it for you. Please try to remove these preferences from your project as shown in highlighted area https://prnt.sc/fkk20p, it is not necessary and possible the root causes

Hi,

Same issue I am face,i have used the command

katalon -runMode=console -noExit -projectPath=“E:\katalon workspace\Katalon Studio\facebook\facebook.prj” -reportFolder=“Reports” -reportFileName=“report” -sendMail="apranesh@augustasoftsol.com" -retry=0 -testSuitePath=“Test Suites/email signup” -browserType=“Android” -deviceId=“6464f034”

Jenkins shown error is Error
17:01:17 06-16-2017 05:01:17 PM - [END] - End action : startApplication
17:01:17 06-16-2017 05:01:17 PM - [FAILED] - Unable to start app at: ‘D:\facebook\facebook-release-1.apk’ (Root cause: java.lang.NoSuchMethodError: org.openqa.selenium.remote.DesiredCapabilities.merge(Lorg/openqa/selenium/Capabilities;)Lorg/openqa/selenium/remote/DesiredCapabilities;)
17:01:17 06-16-2017 05:01:17 PM - [FAILED] - Test Cases/email FAILED because (of) Unable to start app at:‘D:\facebook\facebook-release-1.apk.apk’ (Root cause: java.lang.NoSuchMethodError: org.openqa.selenium.remote.DesiredCapabilities.merge(Lorg/openqa/selenium/Capabilities;)Lorg/openqa/selenium/remote/DesiredCapabilities;) 17:01:17 06-16-2017 05:01:17 PM - [END] - End Test Case : Test Cases/email 17:01:17 06-16-2017 05:01:17 PM - [END] - End Test Suite : email signup
Note :
Root cause: java.lang.NoSuchMethodError: org.openqa.selenium.remote.DesiredCapabilities.merge

How can i set DesiredCapabilities for mobile in script?

katalon -runMode=console -noExit -projectPath="E:\katalon workspace\Katalon Studio\facebook\facebook.prj"
-reportFolder="Reports" -reportFileName="report" -sendMail="apranesh@augustasoftsol.com" -retry=0 -testSuitePath="Test Suites/email signup"
-browserType="Android" -deviceId="6464f034″

Above is the correct command by removing remote options, please give it a try. You can generate command line easily followed with this guide: https://docs.katalon.com/display/KD/Console+Mode+Execution#ConsoleModeExecution-CommandBuilder

Hi,

Iam using HTC local device connect with my system.

Mention me valid command for it.

Can I ask which mobile device would you like to run, is it your local device or cloud device? That command line is incorrect because it’s a mix of remote and local options.

Thanks

Hi

Iam facing this error in jenkins

16:08:12 06-16-2017 04:08:12 PM - [FAILED] - Test Cases/email FAILED because (of) Unable to start app at: ‘D:\faceboob\facebook-1.apk’ (Root cause: java.lang.NoSuchMethodError: org.openqa.selenium.remote.DesiredCapabilities.merge(Lorg/openqa/selenium/Capabilities;)Lorg/openqa/selenium/remote/DesiredCapabilities;)

Hi

Finf my command line fot android
katalon -runMode=console -noExit -projectPath=“E:\katalon workspace\Katalon Studio\facebook\facebook.prj”
-reportFolder=“Reports” -reportFileName=“report” -sendMail="apranesh@augustasoftsol.com" -retry=0 -testSuitePath=“Test Suites/email signup”
-browserType=“Android” -deviceId=“6464f034” -remoteWebDriverType=“Appium” -remoteWebDriverUrl=“127.0.0.1:5037”

Hi,

Please find my command line my using http://prntscr.com/fkg88h

Hi there,

You need to pass generated command line from Katalon Studio so that it can be used in Jenkins and produce Jenkins logs like that. Currently Katalon Studio doesn’t have any plugin, the only way for integration with Jenkins is to use console mode execution, which is what you are using in Jenkins.

Hi

Iam have not used command lines and mention me the steps to integrate mobile test in jenkins.

Also mention

1)Is any plugin need to added for integrating mobile test aith jenkins?

Please post me your command line used for that execution also.

Thanks

Hi

Iam still facing the same issue.

http://prntscr.com/fkfy3n

Hi,

I am using updated tool for web application its run successfully in jenkins.

Do you use our selenium library or do you a different version of its?

http://prntscr.com/fjyupk

06-15-2017 12:05:04 PM - [START] - Start Test Suite : siginin
06-15-2017 12:05:04 PM - [RUN_DATA] - Logging run data ‘hostName’ with value ‘pranesh - Pranesh-PC.augustahitech.com
06-15-2017 12:05:04 PM - [RUN_DATA] - Logging run data ‘os’ with value ‘Windows 7 64bit’
06-15-2017 12:05:04 PM - [RUN_DATA] - Logging run data ‘hostAddress’ with value ‘192.168.1.153’
06-15-2017 12:05:04 PM - [RUN_DATA] - Logging run data ‘katalonVersion’ with value ‘4.6.0.2’
06-15-2017 12:05:04 PM - [START] - Start Test Case : Test Cases/email
06-15-2017 12:05:04 PM - [INFO] - Evaluating variables for test case
06-15-2017 12:05:04 PM - [START] - Start action : startApplication
06-15-2017 12:05:04 PM - [INFO] - Starting app at: ‘C:\Users\pranesh.AUGUSTAHITECH\Downloads\jar\facebook.apk’
06-15-2017 12:05:04 PM - [FAILED] - Unable to start app at: ‘C:\Users\pranesh.AUGUSTAHITECH\Downloads\jar\facebook.apk’ (Root cause: java.lang.NoSuchMethodError: org.openqa.selenium.remote.DesiredCapabilities.merge(Lorg/openqa/selenium/Capabilities;)Lorg/openqa/selenium/remote/DesiredCapabilities;)
06-15-2017 12:05:04 PM - [INFO] - User set preference: [‘deviceId’, ‘CC55EYG01556’]
06-15-2017 12:05:04 PM - [FAILED] - Test Cases/email FAILED because (of) Unable to start app at: ‘C:\Users\pranesh.AUGUSTAHITECH\Downloads\jar\facebook.apk’ (Root cause: java.lang.NoSuchMethodError: org.openqa.selenium.remote.DesiredCapabilities.merge(Lorg/openqa/selenium/Capabilities;)Lorg/openqa/selenium/remote/DesiredCapabilities;)
06-15-2017 12:05:04 PM - [END] - End action : startApplication
06-15-2017 12:05:04 PM - [END] - End Test Case : Test Cases/email
06-15-2017 12:05:04 PM - [END] - End Test Suite : siginin

Copying report to folder E:\katalon workspace\Katalon Studio\facebook\Reports…
Sending report to email: [apranesh@augustasoftsol.com]…
Setting file name to 20170615_120503.csv

Setting file name to 20170615_120503.zip

Setting file name to /wp-content/themes/katalon/images/logo-katalon.png

Sending data EHLO Pranesh-PC<<<<<<
Sending data AUTH LOGIN<<<<<<

What are the issues you from your side? Can you specify more about it?