02-14-2013, 01:16 AM
I have a code where I have to enter 0231 with zero as 1st digit. However qtp insert value as 231 in that field and my script fails. is there any solution to force qtp to insert 0231, 0 as the first digit?
See Below:
datatable as
username ssn
test 1234
second 3231
third 0231
fourth 2311
at third iteration script fails as while importing the script ssn column value becomes 231 and that field need four digit value (number.)
See Below:
Code:
Browser(".*").Page(".*).Webedit("Name:=User.*).set datatable("username", dtglobal)
Browser(".*").Page(".*).Webedit("name:= ssn.*).set datatable("ssn", dtglobal)
datatable as
username ssn
test 1234
second 3231
third 0231
fourth 2311
at third iteration script fails as while importing the script ssn column value becomes 231 and that field need four digit value (number.)