How to integrate Jmeter scripts with UFT or QTP

527 views Asked by At

I want to run Jmeter script from UFT/QTP. Please let me know the if I need to install plugin for Jmeter in UFT and required setup for the same.

2

There are 2 answers

0
Dmitri T On

Integrate which direction? UFT is Unified Functional Testing and JMeter is a load testing tool which falls into Non-Functional Testing so there is no straightforward integration, you will have to use underlying operating system as a proxy.

  • You can run QTP/UFT scripts from JMeter using OS Process Sampler and CScript.exe
  • You can run JMeter tests from QTP/UFT script like:

    Dim myCmd 
    Set myCmd = CreateObject ("WSCript.shell") 
    myCmd.run "cmd /c jmeter -n -t test.jmx -l result.jtl" 
    Set myCmd = Nothing 
    
0
Bela Tamas Jozsa On

Why do you need Integration at all? If you want to keep your environment clean you should not mix 2 different tools and technologies that have nothing to do with each other.

Let your CI System (Jenkins, HPE ALM / Octane etc) trigger the execution of the different types of tests. In case you have full UFT licenses then you may think about API Tests (Based on C# / .NET) and Load Tests based on HPE toolsuite.