0

I have practically dead exhausted trying to scratch and scrub way to run gui quicktest test configuration from alm with different parameters. For all what I know, uft alm integration does not offer a fairly easy solution.

The only other option is to code the same, however via ota am not able to find the test configuration name when it is executed from alm. It just gives out the parent test name but not the configuration name.

Any help or direction ?

IrateINWIT
  • 39
  • 6

1 Answers1

0

There is an very easy way to get the run/test name:

Get the Run Name:

Dim CurrentRun 
Set CurrentRun = QCUtil.CurrentRun 
Reporter.ReportEvent 2,"Current Run", CurrentRun.Name 

Get the Test Name:

Dim strTestname 
strTestname = QCUtil.CurrentTest.Name

Keep in mind that both properties wont be accessible when running uft without alm integration.

There is an official documentation of all vbscript objects that can be used in UFT gui.

getting the test name using an API Test case is harder, I can post my solution if required

Jonas
  • 198
  • 1
  • 14
  • Thank you, however the ''' CurrentRun.Name ''' does not gives the *name of the configuration* running. the correct solution is QCUtil.CurrentTestSetTest.Name (<< This gives the name of the Configuration running) and QCUtil.CurrentTestSetTest.TestName gives the name of the parent test case to which the configuration is associated. Am sorry, I was not clear with my question. Perhaps wrong choices of words. – IrateINWIT Jan 17 '20 at 12:33
  • @IrateINWIT I'm glad I could lead you to the right direction :) – Jonas Jan 20 '20 at 07:31