| || |
dynamic value changes
what type of coding do I use in QTP when there is dynamic change in numbers.eg my application is on POS scenario is adding dollars to purchase some thing.the amount will be $20.00 and I will want to pay only $2.00 and keep paying it when ever I have money to reach the $20.00.after recording when I pay $2.00 the value will change to $18.00.
when I run the Script it is not able to identify the item since there is a change in the amount so how can I do this any suggestions will be helpful
Re: dynamic value changes
Well 3 ways to go about it
1. You can use DP - Descriptive programming. You can refer http://bondofus.tripod.com/QTP/DP_in_QTP.doc for it.
2. You can use regular expression in the object properties in the OR
3. You can use SetTOProperty to change the test object property at run-timr.
Choose the one you are conformtable with.