We have around 2000+ scripts categorized into few folders (Test Set Path) within HP QC environment.
However, existing CA RA's action requires each and every TEST SCRIPT NAME as a parameter.
This is going to consume huge time and cumbersome to manage the same.
Any plans on handling this situation?
My ask is - How can we trigger 2000+ scripts written/available in HP QC via CA RA actions.
Though not 2000, we have around 400+ mandatory scripts that takes around 2 hours to get completed.
Need your assistance.
There is an action Pack available in CA RA named Nolio-HP-QC-Actions.
This Action Pack contains Action Class - HP QC - Run Test where you can run individual test scripts.
You can make use of parameters to run all the test case of a particular folder by looping this Action Class.
Lets say we have 10 scripts to run in a particular folder.
So create a String Array and add the names of all the scripts to run.
The Create a Flow and loop using the String Array Created previously and use the HPQC action class to execute each script.
Thanks for your reply.
HP QC action page doesn't consume StringArray as an option/input.
If yes, I could have used Looping Workflows to tackle this problem.
Do the below things:
1. Create 2 Parameter one string array and one string.
2. Add the Action Class of HP QC - Run Test in a Flow and in the Properties section select loop type as FOREACH and Element as String Array Created. This is as shown below.
3. In the Same Flow - Output Section - Use the string parameter in the Iteration Element.
4. The same string can be used in the Test Name.
Let me know if this works.
Did the answer from Sachin answered your question? If it did please mark it as the right answer. When your question is not answered or you still have additional questions please let us know.
With Kind Regards
Team-Thanks for your wonderful support in answering this question.
One issue, I have designed a simple action in RA to trigger the QC script and looks like it's not working.
Though the output shows green tick mark, it's actually not running the script in QC platform.
Have you faced this scenario?
Can you please give more info on this.
Is the QC script present at the location you're running it from?
Yes, below script is available in QC and been triggered via CA RA plugin.
Though the action result shows green, nothing is been executed in QC platform.
Script Path Info:
Can you check the path being used in action is correct? If it's correct, not sure why script is not been triggered in QC app.
Additional Screen Shots: Location of script in QC:
Action Designed in CARA for one of the script:
It is working for me:
I gave below Name:
Please try it out and let me know.
Hit the refresh button after the execution is run.
Thanks for your response! It's still not working in our environment.
Will open a support case to track the same.
I managed to get this working, but apparently the HP QC action only updates to whatever status is provided and does NOT actually run the test. In order to get an actual test run, I had to get UFT installed on our RA server and use the HP UFT Run Test action. This appeared to run using a test case we had moved to the server specifically for testing purposes, however further investigation showed that the script had actually timed out after about 11 minutes (the test script should only run for about 5). The negative run was further confirmed by the fact that the test did not create a result file, nor create a detailed result file in the user defined result location. The test runs fine when started in UFT or through HP QC, with correct result files created.
Is this a configuration issue, or a result of using a QTP script to run UFT?
Yes, you are correct!
I am using UFT actions for triggering test scripts located in a specific directory. Indeed, need to install and configure latest version of UFT for this requirement.
We're using UFT 12.50, and the test runs with out using RA, but times out with RA. What additional configuration between UFT and RA is necessary, since they are both running on the same server?