Can katalon use data driven with condition testing validatio?

Hallo everyone,

iam rookie in automate, still learn & learn.
i wanna ask how to use data driven in katalon for testing validation?sample Login

Case:
Username | Password
steve | (blank password)
(blank username) | steve2018
etc…

How can automate read every show validation from system for make sure system working well.
Sample validation : “Password must be fill”

Thank’s lot

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…

1 Like

Andrej Podhajský said:

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" ?

Username | Password | Code
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)
}

1 Like

Andrej Podhajský said:

Username | Password | Code

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.

Welcome