|Test Lab fields|
A. In ALM , Dashboard — Analysis View
B.Create New Excel Report
|Customize in ALM|
B.Select Project Entities
Launching and running UFT script from VAPI-XP in ALM
Create a simple Test in UFT with following lines of code.
Write the following lines of code in our local txt file.
Hint:- It invokes UFT and execute the “Hello World!!” code
Run the VAPI-XP in Test Lab and we are done.
Happy Learning!!Please feel free to share your feedback and comments.
|VAPI-XP default code|
Sub Test_Main(Debug, CurrentTestSet, CurrentTSTest, CurrentRun)
VAPI-XP is also fully integrated with the ALM Open Test Architecture API. All open test architecture API classes and methods can be referenced from the VAPI-XP user interface
Create a new Test folder inside a Test Plan in ALM
b.Set the value of Test name
c.Click Finish to create a default type of VAPI
Note:-We can also use VAPI-XP to create a LoadRunner virtual user.
|Code for VAPI-XP|
Move Your VAPI-XP file to Test Lab and we are ready to run the VAPI-XP
|Email Notification in ALM|
|Test Failure window|
|ActiveX Error Message|
Using “ObjectRepositoryUtil Object“
Incase TargetFile, already exists UFT will give an error.
Using Object Repository manager
|Object Repository Manager|
2.Open the OR
3.Export to XML format
File ->Export to XML
|Export to XML|
After Export we will get the information regarding the objects Exported from OR
The Remote Agent’s icon will appear as a Taskbar Button(Check the far bottom right of the taskbar). Right click on remote agent button and select “Settings” from the context menu.
|Remote Agent Button on Task Bar|
|Remote Agent Dialog Box|
Go to run (use Windows + R shortcut key)
Open remote agent setting file, “mic.ini”.
|Searching Remote Agent file through Run|
Look for below segment to change the settings.
Operation wait interval is by default is set to 45 minutes(2700 sec = 2700000 microseconds), we can change it as per our requirement.
Change RunQTPHidden=0 to RunQTPHidden=1 if you don’t want to run UFT in Hidden mode when running tests from ALM.