Firstly, I will give you some idea about what I am doing. I writing a few test cases without a framework, so for this I am creating a VBS file in which have written a code for launching of the UFT and opening of the action have created. Code is like this:
Set qtApp= CreateObject("QuickTest.Application")
qtApp.Launch
qtApp.Visible = True
Set qtTest = qtApp.Test
'And then call your scripts one after another
qtApp.Open "D:\UFT\TestScript\Function_Demo",true
Set qtTest = qtApp.Test
qtTest.Run
Also have created functions for each scenario which are associated with this Action, so whenever VBS file will be triggered by third system it will launch UFT and open the Action in which I am calling all the functions, so here comes my first question
- How can I set the priority of the function so that it will run in sequence?
- Also I wanted to write code for the result status as pass and fail and depending on the pass and fail status I wants to update the XML specific nodes with the status and also along with this wants to capture the screenshot of the test case whenever it's failed and for this also have to update the path in XML nodes. As I am very new to the UFT so was not sure how to do this can someone please help me with this? How to write the code and what all things will be required?
Quick response will be appreciated.