Forum Discussion
shilpi_agarwal
Contributor
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_R
8 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
- 20 minutes agonastester
- 4 hours agosimonaferrara
- 9 hours agomacheshmeh