Results 1 to 1 of 1
Hi,
Trying to automate one of tool for regression testing. Tool output will vary depending upon PASS or FAIL Of test
#JDBC Permission checked
expect -exact "Enter Oracle client OS ...
- 12-02-2009 #1Just Joined!
- Join Date
- Dec 2009
- Posts
- 1
Expect Script - Need help to find solution
Hi,
Trying to automate one of tool for regression testing. Tool output will vary depending upon PASS or FAIL Of test
#JDBC Permission checked
expect -exact "Enter Oracle client OS user ID(oracle): "
send -- "oracle\r"
expect {
PASS {
continue
}
FAIL {
send -- "\r"
}
}
#Checking Hist_DB_Connectivity
expect -exact "(USER): "
send -- "user\r"
expect -exact "assword"
send -- "password\r"
expect -exact "or"
send -- "1\r`"
expect -exact "host"
send -- "dbhost.com\r"
expect -exact "port"
send -- "1521\r"
expect -exact "database"
send -- "ccr.dbhost.com\r"
The script should execute continue statment and go to next test if test is passed but if failed it will generate below output and need to hit enter button to continue.
"Enter e to execute again or press Enter to continue:"
Please help to build this logic.
Thanks in advance


Reply With Quote