10-15-2009, 07:42 PM
Hi all,
I have a question here. I have written a code that parses the script lines in qtp and i create my test assets that way. What I need to do now is to parse the validation lines as well. The problem here is that validations can be written in a lot of ways. To start with, I picked up the one easiest to put as it requires no coding effort, CheckPoint.
Now, my script line looks like this -
And when i add a validation to check the value in the text box, it comes as -
Now, I don't have information here bout the CheckPoint, i.e. what validation is being done here and what value it is being validated, etc. My question is, is there any way I can reflect this in the script line only, containing information which is required for validation, namely - value being validated and which validation is being done?
(Something LIKE this)
Is there a workaround to get these values from some other place as well? Thanks in advance.
I have a question here. I have written a code that parses the script lines in qtp and i create my test assets that way. What I need to do now is to parse the validation lines as well. The problem here is that validations can be written in a lot of ways. To start with, I picked up the one easiest to put as it requires no coding effort, CheckPoint.
Now, my script line looks like this -
Code:
Browser("homepage").Page("User Login").WebEdit("sid").Set "blah blah"
And when i add a validation to check the value in the text box, it comes as -
Code:
Browser("homepage").Page("User Login").WebEdit("sid").Check CheckPoint("sid")
Now, I don't have information here bout the CheckPoint, i.e. what validation is being done here and what value it is being validated, etc. My question is, is there any way I can reflect this in the script line only, containing information which is required for validation, namely - value being validated and which validation is being done?
(Something LIKE this)
Code:
Browser("homepage").Page("User Login").WebEdit("sid").Check CheckPoint("sid", "validate text", "blah blah")
Is there a workaround to get these values from some other place as well? Thanks in advance.