There are a few ways to run automation with PractiTest. You can read about them here
PractiTest’s API lets you integrate your automated tool with PractiTest.
The Automation API enables our customers to notify PractiTest automatically with their automated testing results.
Customers run their automation using any automated solution they choose and update PractiTest directly with the Automation API.
This way, users can have a clear picture of the testing (manual and automated) within PractiTest.
Many of our customers use tools such as: Selenium, Ranorex, etc.; or their CI platforms (such as Jenkins, CirlcleCI, etc.) in order to update PractiTest.
The main API method to choose is : “create_a_run”
See a full example how to send results of your automated test in Selenium to PractiTest here.
Download the full step-by-step guide for integrating PractiTest with automation frameforks here.
Make use of Practitest’s API in order to generate the automation you need.
- Integrate all the test runs (manual and automatic) in your project under one roof
- Flexible – define the functions you want
- Can be run automatically -> whether via a cron task, or when you commit, depends on your needs and configuration
- Integrates with your existing framework
- Define the results you want for your report
- Initialize your automated tests (via framework) and update PractiTest with your results
- Support all different test statuses: PASSED, FAILED, BLOCKED, NOT COMPLETED, NO RUN
- Supports of steps inside runs
- Works everywhere in every language, just update us with a simple POST command.
- CONS: your code needs to update PractiTest in your code
Step by step guide for working with automation:
- (Recomended) Create a custom field of type list called 'Execution type' that includes the values: Automated and Manual. Thus, you will be able to separate manual and automated tests and Test Sets in PractiTest.
- Create equivalents of your automated tests in PractiTest. You can use this POST request for this process.
- Group the equivalent test cases into Test Sets, this request allows to do that. Please make sure to use the 'data/instances/test-ids' parameter hence Test Sets will be created with relevant tests inside.
- Once an automated test is executed, you will need to send this POST request that uploads its result into PractiTest.
the POST request above has a mandatory parameter called 'data/attributes/instance-id' and the instance-id can be retrieved by using this GET request where you can use the 'name_exact' and the 'set-ids' parameters. That's why we recommend to use the same name convention for your equivalents.
Note: Only system IDs can be used when using in the REST API
- Once you have a new version of your product, you can clone the original Test Set by using this request and to send results into there.