I am new to testing framework for Appium and Jenkins,My question is, it is possible to run appium test scripts through jenkins? If possible please provide the links or example for that.
Thanks Advance.
I am new to testing framework for Appium and Jenkins,My question is, it is possible to run appium test scripts through jenkins? If possible please provide the links or example for that.
Thanks Advance.
Step 1: Install Jenkins in your system visit the Jenkins url in browser. In my local I access Jenkins using "http://localhost:8080"
Step 2: Tap "New Item" > "Freestyle Project" > 'OK'
Step 3: Scroll to 'Build' section > Add Build Step > 'Execute Shell' and enter the below commands:
#!/bin/bash --login -x
appium &
sleep 5s
Step 4: Click on 'Build Now'.
Step 5: Open the running job > 'Console Output' to ensure Appium server is running.
The following text should be displayed in console logs:
[Appium] Welcome to Appium v1.6.4
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
Step 6: All the test scripts should be placed inside 'workspace' directory of Jenkins. My scripts are in this location: /Users/Shared/Jenkins/Home/workspace/appium-android/
Step 7: I use pytest in Python, so my command is as follows:
cd $WORKSPACE
pytest /Users/Shared/Jenkins/Home/workspace/appium-android/tests/listings/test_listing_create.py
Ensure you have all dependencies installed in Jenkins machine, like Python, Appium python client, Appium server etc