How object created in 1 test can be accessed in multiple test in UFT | QTP/UFT Forum
S
Siddhant kumar sahoo Posted on 20/05/2021

If I have created an object in one Test say Test 1 in UFT .

Can the same object  and the  corresponding method and properties  be accessed by multiple test like Test 2 ,Test 3 during Run time in UFT?.

I tried but did not get any success.

Can we set the object declared at global level so that the same object can be used by multiple test.

 

For example

I have created an object and stored in the reference variable htmlReporter as highlighted in the screenshot.

I want to use the same reference htmlReporter and the method in different test like GUITest2 and Logout_Test(in screenshot)during Run time .

How can I do this?