Micro Focus QTP (UFT) Forums

Full Version: How to create an object for all actions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Object test_case is created in action1

Code:
set test_case = fso.CreateTextFile("C:\Created projects\drive indices test cases", True)

some lines are written as following:

Code:
test_case.Write("Create new  -->  location --> ") & vbnewline
test_case.Write("Create new in field ") & vbnewline
test_case.Write("Create ") & vbnewline

In Action2 i want to continue writing next to the previous line but message comes object required.

Please help
every action has a diff object repository. so what works on action1 will not work in any other action if its depended on object. you can export or from action 1 and associate with action2. or you can use shared or. please go through the basic understanding for QTP