We are using QC to record manual test cases and the Test Manager and Project Manager use QC to generate daily and weekly reports of the test progress.
What I want to do is to have test place holders in QC, i.e. test cases with just 1 test step, which might contains the line, something like:
'run automated selenium test: user_validation_check.java'.
In other words, I want to know if it is possible to trigger the selenium tests from within QC and then capture the pass/fail results back from selenium back in QC.
We are not an Agile house, and our aim is simply to use selenium to automate some of the repetitive and time consuming manual tests for regression.
I Know about an option to use the COM interface of QC to connect it via selenium.
Use the test tool plug-ins, they allow you to run test scripts associated with those tools directly from HP Quality Center. When creating tests within HP QC you will be able to select the test tool from the drop down list of test types. This will then display the appropriate options for each test tool in turn and link directly to the native test script associated with the tool.
Tests can then be executed automatically from within HP QC and the pass/fail results logged within the Test Lab section as well as having the option to store any log files created during the test execution process as attached to the test run instance:)
You can create a VAPI-XP test to act as a test runner for your JUnit test cases.
You could create a script (to run as a build step from Eclipse) that:
1. generates a VAPI-XP test execution script from a template
1. Uploads it to Quality Center using the OTA
The VAPI-XP script would basically just execute an external command that runs %JUNIT% %TEST_CASE% and parses the result for pass/fail.
Then you could run the test from inside Quality Center.
Here's a link explaining how to upload a VAPI-XP Test:
http://h30499.www3.hp.com/t5/Quality-Center-Support-and-News/Uploading-a-test-script-to-VAPI-XP-Tests/td-p/5163366
An another about about creating a TestSet via OTA:
http://h30499.www3.hp.com/t5/Quality-Center-Support-and-News/How-to-create-a-TestSet-in-Quality-Center-using-scripting-and/td-p/5747911
Hears a good description of how to create a VAPI-XP Test:
http://www.ranorex.com/blog/running-ranorex-automated-tests-with-hp-quality-center#Create-a-VAPI-XP-TEST
Hi Jonathan,
Can you share any example of VAPI-XP script mentioned below using VBScript when the test case is in Eclipse wherr I usually run it as Junit Test Case ? I am new to Selenium so details will be appreciated.
"The VAPI-XP script would basically just execute an external command that runs %JUNIT% %TEST_CASE% and parses the result for pass/fail."
You should be able to integrate test results from Selenium (and other tests) by using QC integration utility without altering your regular workflow once you have the mapping implemented. Alternately, you could use the example in QC Integration to add a step to your tests which calls Quality Center to update each test result after it runs, but this is less efficient error prone since it requires establishing a network connection to QC for each test to succeed.
There are many tools that can easily integrate with it, Qualitia is one of the tools that integrate it without any complexity.