Forum Discussion
Marsha_R
Champion Level 3
I would add the =6 digits case, since that's the actual requirement.
shilpi_agarwal
8 years agoContributor
My question is -
Since i am hard coding the postal code in my script. Is this correct way to use hardcode the value of postal code in the script?
if aqConvert.VarToStr(Driver.Value(6)) = "123" then
Here I am checking the postal code value with the excel file's postal code and compare the expected output(in excel file) with the actual output(application output)
- Marsha_R8 years agoChampion Level 3
That will work but it would be a more generic test to look at the length of the string instead of the contents.
Take a look at aqString.Compare
https://support.smartbear.com/viewarticle/87967/
You can check the numeric requirement separately.
Related Content
Recent Discussions
- 10 minutes agoSubhraDas