Release Automation

 View Only
Expand all | Collapse all

Managing 2000+ HP QC scripts via CA RA action

Sachin Srivastava

Sachin SrivastavaNov 07, 2016 11:55 AM

  • 1.  Managing 2000+ HP QC scripts via CA RA action

    Posted Oct 17, 2016 11:08 AM

    Hi Team,

    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.

     

    Thanks,

    Raghavendra Guttur

    +91 9901900122



  • 2.  Re: Managing 2000+ HP QC scripts via CA RA action

    Broadcom Employee
    Posted Oct 17, 2016 11:25 AM

    Hi Raghavendra,

     

    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.

    Example:

    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.



  • 3.  Re: Managing 2000+ HP QC scripts via CA RA action

    Posted Oct 18, 2016 02:10 AM

    Hi,

     

    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.

     

    Thanks,

    Raghavendra Guttur

    +91 9901900122



  • 4.  Re: Managing 2000+ HP QC scripts via CA RA action
    Best Answer

    Broadcom Employee
    Posted Oct 18, 2016 09:10 AM

    Hi Raghav,

     

    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.

     

    Regards,

    Sachin



  • 5.  Re: Managing 2000+ HP QC scripts via CA RA action

    Broadcom Employee
    Posted Nov 02, 2016 11:23 AM

    Hi

    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

    Dirk



  • 6.  Re: Managing 2000+ HP QC scripts via CA RA action

    Posted Nov 04, 2016 10:21 AM

    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?



  • 7.  Re: Managing 2000+ HP QC scripts via CA RA action

    Broadcom Employee
    Posted Nov 04, 2016 10:30 AM

    Hi Raghavendra,

     

    Can you please give more info on this. 

    Is the QC script present at the location you're running it from?



  • 8.  Re: Managing 2000+ HP QC scripts via CA RA action

    Posted Nov 04, 2016 11:03 AM

    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.



  • 9.  Re: Managing 2000+ HP QC scripts via CA RA action

    Posted Nov 04, 2016 11:40 AM

    Additional Screen Shots: Location of script in QC:

     

     

    Action Designed in CARA for one of the script:



  • 10.  Re: Managing 2000+ HP QC scripts via CA RA action

    Broadcom Employee
    Posted Nov 07, 2016 11:40 AM

    Hi Raghavendra,

     

    It is working for me:

     

       

     

     

     

    I gave below Name:

     

     

    Please try it out and let me know.



  • 11.  Re: Managing 2000+ HP QC scripts via CA RA action

    Broadcom Employee
    Posted Nov 07, 2016 11:55 AM

    Hit the refresh button after the execution is run.

     



  • 12.  Re: Managing 2000+ HP QC scripts via CA RA action

    Posted Nov 11, 2016 02:08 AM

    Thanks for your response! It's still not working in our environment.

    Will open a support case to track the same.

     

    Thanks,

    Raghavendra Guttur

    +91 9901900122



  • 13.  Re: Managing 2000+ HP QC scripts via CA RA action

    Posted Jan 03, 2017 12:44 PM

    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.

    Example of HP UFT action output

     

    Is this a configuration issue, or a result of using a QTP script to run UFT?



  • 14.  Re: Managing 2000+ HP QC scripts via CA RA action

    Posted Jan 04, 2017 07:24 AM

    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.



  • 15.  Re: Managing 2000+ HP QC scripts via CA RA action

    Posted Jan 04, 2017 10:02 AM

    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?