Let us install Opkey Web plugin in Jenkins for executing Suite in Opkey Web.
Click on Manage Plugins to install required plugin.
Go to the Upload Plugin section. Click on Choose File and select Opkey Web Jenkins plugin “.hpi” file and click on Upload.
When Opkey Jenkins plugin has been uploaded and configured successfully, you can execute your Suite in Opkey Web using Jenkins.
Here, you can see that Jenkins plugin installation has been completed successfully.
Let us create a new job. Enter name of the job and then select Freestyle Project.
Go to the Build Environment tab and then Build section as shown below. Click on Add build step and then select Execute Opkey (SAAS TestSuite).
Go to the Build section. Enter your login credentials to the Opkey Login section. Click on Test Connection to authenticate entered user credentials.
Once your credentials are authenticated successfully, you will be allowed to proceed to choose execution platforms supported by Opkey Web, as shown below:
Now, you can choose execution platform. Let us first choose Run Execution on Local platform. Further, you need to enter all required fields of Execution Settings.
You can check Continue on Build Step Failure checkbox while executing your build in Jenkins, which will execute your inner build steps even in case of failure of the parent build. If Skip Step checkbox is checked then test steps having no values for mandatory data input arguments, will get skipped during test execution.
Similarly, let us choose Run execution on pCloudy as execution platform. Enter pCloudy credentials to proceed. Once your credentials are authenticated successfully, Execution Settings form opens in which you need to enter all required fields and then Save it.
You can select Report Type of the Test execution (triggered through Jenkins) to be sent through SMTP Settings. To do so, a field has been added under the Execution Settings form fields.
Go to the Report Type field. Click on the corresponding dropdown icon.
Select Report Type from the dropdown list (Summary, Failed, Detailed & Outline).
If you don’t need to send Report to anyone then select DontSend option. By default, DontSend options is selected.
This Jenkins configuration of sending Report Type (Summary, Failed, Detailed & Outline) will work only when you have configured SMTP Settings properly.
Scroll down page to pCloudy Settings. Select duration from the dropdown and then select your Android/iOS mobile device based on mobile OS (Android/iOS) version.
You can select multiple mobile devices from the list and execute your test on these devices.
You can choose Run Execution on Opkey Cloud as execution platform. Enter your Opkey Cloud credentials. Once your credentials are authenticated successfully, Execution Settings form opens. Enter all required details under Execution Setting section. Click on Save to proceed.
Once Project gets selected from the drop-down, OpkeyCloud Settings is enabled. Select your desired Web Browser(s) corresponding to the selected platform. You can also add Global Variables from here. Click on Save to save.
Jenkins integrated with Opkey Web allows you to execute multiple builds one by one automatically. Let us go to the Post-build Actions section as shown in below given image.
Select Opkey (SaaS TestSuite) Post option from the drop-down list as shown below:
Go to the Build section. Enter your login credentials to the Opkey Login section for Post Build Actions. Click on Test Connection to authenticate entered user credentials.
Once user credentials authentication gets completed successfully, Execution Settings form opens. Enter all required details under Execution Setting section. Click on Save to proceed.
Once, your Opkey Login credentials are authenticated successfully, you can choose your execution platform (Local, pCloudy or Opkey Cloud) where you will be asked to login with corresponding login credentials.
You can also add Global Variables from here. After filling all required fields in Execution Setting, go to the Global Variables section and click on Add Global Variables and select your Global Variable from the drop-down list and provide its value.
Now, you can use your attachment file (Added to Global Variables list) for test execution. To do so, follow the given instructions:
Go to the Global Variable section on Jenkins page.
Select Blank attachment as GLobal Variable.
Select Value of Global Variable from the dropdown. Your Attachment files under Global Variables are shown here.
Note: There are few file formats which are blocked to be used as Attachment and they are .exe, .msi, .bat, .com, .dll, war, .cmd & .reg.
Now, click on Build Now to start execution process.
Execution process gets started as shown in below given screenshot. Click on drop-down icon of your executing build (#1) and select Console Output to view execution logs.
Here, you can see execution logs in the Console Output.
When your execution process gets completed successfully, it is shown as Pass. A log file containing execution logs is located at the mentioned location.
Was this article helpful?
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
We appreciate your effort and will try to fix the article