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 :).
Implementation:-
Step1:-
Sub Test_Main(Debug, CurrentTestSet, CurrentTSTest, CurrentRun)
Step4:-
Implementation:-
Step1:-
Delete the default generated code in VAPI-XP testing tool.
![]() |
VAPI-XP default code |
Step2:-
Replacing the default code with following lines of code.
![]() |
Code |
Step3:-
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.
Sub Test_Main(Debug, CurrentTestSet, CurrentTSTest, CurrentRun)
msgbox “Hello World!!”,,”My First VAPI-XP”
End Sub
Step4:-
Select the VAPI-XP and move to Test Lab for Running.
After successfully running the script we will get the following message.
![]() |
Hello World!! |