Hi , i am wanting to run tests in parallel on my system but seem to be struggling, i am currently using the V2 of the testing framing work with TestNG
i want to run several tests parallel to cut down on test execution time and also run load testing on app servers / database servers by simulating user session.
i can modify the TestDriver @Tests decorator and add invocationCount = x and threatPoolSize = x but the driver seems to get shutdown after the first test and subsequent tests fail with a null session ID error.
Gordon,
To be honest - I don't know the answer to your question.
However, I noticed that you are working on automating Maximo testing. We've built a SaaS tool just for that - https://testgrinder.com
As a quick illustration, here's how parallel testing looks in testgrinder.
The run executed in 10 parallel sessions. 20 tests completed in 50 seconds, while each test took about 10. Click Video to watch each scenario execute. Click on individual scenario to expand/see screenshots for each step. This is a simple test, but you can do a lot more.
Here's is the script that was executed for this run:
---
Feature: Application Access
Scenario Outline: User Access Test for <Role> to <Application>
Given I login to Maximo as <Role>
When I go to the <Path> application
Then I see that the current application is '<Application>'
And I logout
Examples:
| Role | Path | Application |
| Administrator | Assets / Assets | Assets |
| Administrator | Assets / Locations | Locations |
| Administrator | Planning / Job Plans | Job Plans |
| Administrator | Planning / Data Sheet Template | Data Sheet Template |
| Administrator | Service Desk / Service Requests | Service Requests |
| Administrator | Work Orders / Labor Reporting | Labor Reporting |
| Administrator | Work Orders / Quick Reporting | Quick Reporting |
| Administrator | Work Orders / Work Order Tracking | Work Order Tracking |
| Administrator | Inventory / Item Master | Item Master |
| Administrator | Inventory / Inventory | Inventory |
| Administrator | Assets / Assets | Assets |
| Administrator | Assets / Locations | Locations |
| Administrator | Planning / Job Plans | Job Plans |
| Administrator | Planning / Data Sheet Template | Data Sheet Template |
| Administrator | Service Desk / Service Requests | Service Requests |
| Administrator | Work Orders / Labor Reporting | Labor Reporting |
| Administrator | Work Orders / Quick Reporting | Quick Reporting |
| Administrator | Work Orders / Work Order Tracking | Work Order Tracking |
| Administrator | Inventory / Item Master | Item Master |
| Administrator | Inventory / Inventory | Inventory
2)
Thanks for the response but Selenium out of the box is capable of running at multiple tests in parallel or multiple threads of each test, the issue sits with the TPAE wrapper over the top i believe, it simply may not have been designed to handle parallel test running.
Thanks
Gordon
3)
Good morning!
Currently the framework doesn't handle running the tests in parallel. However, that is something that is currently under development and we will share information once it's available.
Thanks,
Kristin