Running Scriptworks tests on BitBar is easy to set up. This guide will provide step by step instructions.
Adding BitBar Run Settings
From the Test List view select the Run Settings Icon:
The Run settings List will open showing the default Run Settings for the project, click the New Run Settings button:
This will open the Run Settings Info dialog, click on the BitBar Logo:
A set of pre-defined templates will be displayed in the drop-down list:
NOTE – If you don’t have a BitBar account, you can click on the Signup for Account link or sign up here
Click on the Appropriate Link in the List for the Browser/OS Combination you want to test on and the template will pre-fill the Run Settings Info fields. In this case we will chose a Google Nexus 5 running Android 6.0.1 which is a standard BitBar trial device.
Fill in the highlighted <api key>, <project> and <runname> fields with your BitBar API key and project information.
Once you have completed the details, hit the Save button:
You are now ready to run your test on BitBar using the configuration selected. Let’s now explore the unique Bitbar features that can enhance test reporting.
Bitbar Reporting and Video Recording
Scriptworks comes with a BitBar specific reporting block that interacts with the BitBar API to provide joined up reporting between the BitBar and Scriptworks interfaces.
The block is found in the Third Party APIs category as shown :
- Provide a pass/fail status and test name to BitBar Test Summary
- Provide a link in the Scriptworks reporting to the BitBar Test Summary:
- Provide a link and Embedded video of the test execution in the Scriptworks report:
The block is simply added at the end of the test as shown: