Creating VAPI-XP code in ALM and UFT? – User friendly Tech help

Now we know how to create a VAPI-XP in ALM  .Our next target is to utilize this to code and write our first workable piece of code in the form of  “Hello World!!” program :).
n
nImplementation:-
nStep1:-

n

Delete the default generated code in VAPI-XP testing tool.

n

n

n

n

n

n

n

n

VAPI-XP default code

n

Step2:-

n

Replacing the default code with following lines of code.

n

n

n

n

n

n

n

n

Code 

n


Step3:-

n

Create a local text file (Name and Location of the file should be same as we used in VAPI-XP script above).Paste the following lines of code in the .txt file.

n

n
nSub Test_Main(Debug, CurrentTestSet, CurrentTSTest, CurrentRun)

n

                msgbox “Hello World!!”,,”My First VAPI-XP”

n

End Sub

n


Step4:-

n

Select the VAPI-XP and move to Test Lab for Running.

n

After successfully running the script we will get the following message.

n

n

n

n

n

n

n

n

Hello World!!

n

Running UFT using VAPI-XP

Was this article helpful?
YesNo

Similar Posts