I have 2 questions that I cannot seem to answer either easily or elegantly in QTP...
1. How can I check a value against a calculated value, eg if i have (psuedocode)
Dim A
if < 20 then A = A * 1.10
Then how can I use A in a checkpoint ( do I have to use the QTP Datatable?)
2. Suppose I just want to check for a condition before starting a test (remote server re-start/recovery); how can I get QTP to temporarily disable writing failure results to the log, and how can I get at the value to see that it is passed or failed.
I come from a Rational software background and find QTP far less flesible!!! Any help greatly appreciated.
1. How can I check a value against a calculated value, eg if i have (psuedocode)
Dim A
if < 20 then A = A * 1.10
Then how can I use A in a checkpoint ( do I have to use the QTP Datatable?)
2. Suppose I just want to check for a condition before starting a test (remote server re-start/recovery); how can I get QTP to temporarily disable writing failure results to the log, and how can I get at the value to see that it is passed or failed.
I come from a Rational software background and find QTP far less flesible!!! Any help greatly appreciated.