04-15-2009, 06:17 PM
Parameterize the New_Amount value with Environment option. See the script below
But You need to do the following to Parameterize New_Amount
Go to the CheckPoint properties window for New_Amount checkpoint and select Value property - > Select Config Value Parameter -> Select the Option as Environment and enter name as it used in Script.
Thanks,
Vijay
Code:
A = Browser("xxxxxx").Page("xxxxx").WebEdit("amount").GetROProperty("Value")
B = Browser("xxxxxx").Page("xxxxx").WebEdit("Percentage_of_amount").GetROProperty("Value")
Environment.Value("New_amount ") = int(A) + Int(B)
Browser("xxxxxx").Page("xxxxx").WebEdit("New_amount").Set Environment.Value("New_amount")
Browser("xxxxxx").Page("xxxxx").WebEdit("New_amount").Check CheckPoint("New_amount")
But You need to do the following to Parameterize New_Amount
Go to the CheckPoint properties window for New_Amount checkpoint and select Value property - > Select Config Value Parameter -> Select the Option as Environment and enter name as it used in Script.
Thanks,
Vijay