03-27-2009, 08:24 PM
I am a beginner too. I have the same questions still partially open in my mind. So far, I have found two ways to automate?
1. There is a tool called TestBatchRunner {Programs->QuickTestProfessional->Tools->TestBatchRunner}; In this we can batch(add) tests and run them in sequence.
2. In QTP Professional, Go to Professional Help, Go to VBScript Reference, We have "Running your scripts" help. See there. Windows Script Host is a windows tool to run VBScript and We know we have scripts inside our test/actions..etc. I think, the key here is, when you automate, we have to write a (lets say) VB script to does the following for us:
a. open QTP
b. open our test
c. run the existing test
d. close QTP.
This is a simple template of automation. In addition to these steps, we should be able to do lots like: pass data to the test, interpret the test results and write something to a file, etc... as much as you can imagine fed by necessity and experience.
1. There is a tool called TestBatchRunner {Programs->QuickTestProfessional->Tools->TestBatchRunner}; In this we can batch(add) tests and run them in sequence.
2. In QTP Professional, Go to Professional Help, Go to VBScript Reference, We have "Running your scripts" help. See there. Windows Script Host is a windows tool to run VBScript and We know we have scripts inside our test/actions..etc. I think, the key here is, when you automate, we have to write a (lets say) VB script to does the following for us:
a. open QTP
b. open our test
c. run the existing test
d. close QTP.
This is a simple template of automation. In addition to these steps, we should be able to do lots like: pass data to the test, interpret the test results and write something to a file, etc... as much as you can imagine fed by necessity and experience.