Facing issue with while working strings which if statement
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2022
06:06 AM
05-16-2022
06:06 AM
Facing issue with while working strings which if statement
problem question: KeywordTest
1) does if statement works with strings?
2) while running a data-driven test, how to skip one of the iteration ?
3) how to read empty excel cell?
Please try to explain the above question?
Solved! Go to Solution.
Labels:
- Labels:
-
Web Testing
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2022
02:54 PM
05-16-2022
02:54 PM
1)Yes, you can have an if statement with strings, like
if myteststring = 'abc' then
2)To skip an iteration, you would have to keep track of the iteration number and check for it each time
if myiteration <> 10
do some stuff
else
don't do anything
3) I have never had luck reading an empty excel cell. We ended up putting a character in the field that didn't mean anything and using that as if it was empty.
if myexcelcolumn <> ')" then
do some stuff
else
don't do anything
