Skip to content
| Marketplace
Sign in
Visual Studio>Tools>QTP TFS Generic Test Integration
QTP TFS Generic Test Integration

QTP TFS Generic Test Integration

Anna Russo

|
3,875 installs
| (6) | Free
In Visual Studio 2010 there is a Generic Test type that allows you to integrate with automation tools like QTP. I have created a solution that allows you to use your existing QTP automation scripts within the Microsoft Visual Studio testing framework.
Download

In Microsoft Visual Studio 2010 there is a Generic Test type that allows you to integrate with automation tools like QTP.  I have created a solution that allows you to use your existing QTP automation scripts within the Microsoft Visual Studio testing framework and here's a sample below.  The key part of this solution is transforming HP's QTP format to Microsoft’s Generic Test format so that you can publish the results to TFS.  The added benefit of this integration is that you can also use TFS for bug tracking and more.  

 

  1. Prerequisite software - Visual Studio 2010 Premium or Visual Studio 2010 Ultimate and QTP 11
  2. Run QTP_TFSGenericTest.exe
  3. Extract QTP_TFSGenericTest folder to the C drive
  4. The contents of the C:\QTP_TFSGenericTest folder look like below
    • QTPResults folder - This will store the QTP result files
    • QTPTFSGenericSolution folder - This is the VS Solution with the Generic Test
    • TFSGenericTestResults folder - This will store the transformed TFS Generic Test results file
    • QTP.vbs - This is the main script that will execute QTP and transform the results file.
  5. Right-mouse click on the QTP.vbs file > select Edit
    • Replace the highlighted value below with the path of your QTP test
    • Save the QTP.vbs
  6. Navigate to C:\QTP_TFSGenericTest\QTPTFSGenericSolution
  7. Open the QTPTFSGenericSolution.sln(You will need Visual Studio 2010 to open this file)
  8. Double-click the QTPTFS.Genericest
  9. The Generic Test will open and you will see the following below
  10. Navigate to the Test menu > Windows > Test View
  11. Click on the Run button as highlighted below
  12. You will then see the results of your Generic Test running a QTP script, in my case it Passed!

Anna Russo

ImprovingSoftwareQuality.com

 


  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft