you can introduce 3rd column in your data with some code, based on this code you will decide what to do or what to check for that row of data.
eg. code 100 will mean - good (filled) name, good password
then in code you will check:
if code == 100, then assert (something that shows user is logged in)
etc…
you can introduce 3rd column in your data with some code, based on this code you will decide what to do or what to check for that row of data.
eg. code 100 will mean - good (filled) name, good password
then in code you will check:
if code == 100, then assert (something that shows user is logged in)
etc…
Thank’s lot respone my topic, can u show sample this **"**you can introduce 3rd column in your data with some code" ?
if (code == 100){
assert (something that shows user is logged in)
} else if (code == 200){
assert (something that shows user wan not logged in and error for blank passwd was shown)
} else if (code == 300){
assert (something that shows user wan not logged in and error for blank username was shown)
}
John | DoesPasswd | 100
steve | (blank password) | 200
(blank username) | steve2018 | 300
code examples
if (code == 100){
assert (something that shows user is logged in)
} else if (code == 200){
assert (something that shows user wan not logged in and error for blank passwd was shown)
} else if (code == 300){
assert (something that shows user wan not logged in and error for blank username was shown)
}Thank’s lot Mr Andrej Podhajský, i will research your explain condition.