Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BIBO tests
10-07-2020, 11:01 PM
Post: #15
RE: BIBO tests
(09-27-2020 12:14 PM)lingu Wrote:  
(09-26-2020 09:57 PM)zhihao Wrote:  design test_delete.sh:

insert_ret = run test_insert.sh

if ($insert_ret != 0)
print "insert failed, please try again"
return $insert_ret

I think you can remove the above.
removed

(09-27-2020 12:14 PM)lingu Wrote:  
Quote:ret = send delete request del_zengxingliang.json to trajan.d-thinker.org 20050
if ($ret == 200) {
print delete success
}
else {
print delete failed
return -1
}

Pls return different exit code for 200 and 404 scenarios.
added exit code as follows:
test_delete.sh:
Code:
server_addr=trajan.d-thinker.org:20050
flog_also_stderr=True
ret = send delete request del_zengxingliang.json to $server_addr
if ($ret == 200) {
    flog "delete success"
    return 0
}
else {
    flog "delete failed"
    return 99
}

(09-27-2020 12:14 PM)lingu Wrote:  
Quote:ret = send delete request del_zengxingliang.json to trajan.d-thinker.org 20050
if ($ret == 404) {
print delete success
return 0
}
else {
print delete failed
return -1
}
[/code]

RR lingu

You can add the case of deleting a non-existent case in another test, such as isds -- just make it isdsd.
OK, add test_isdsd.sh as follows:
Code:
erver_addr=trajan.d-thinker.org:20050
./test_isds.sh
./test_delete.sh
Quote this message in a reply
Post Reply 


Messages In This Thread
BIBO tests - lingu - 09-26-2020, 01:49 PM
RE: BIBO tests - lingu - 09-26-2020, 01:53 PM
RE: BIBO tests - zhihao - 09-26-2020, 07:11 PM
RE: BIBO tests - zhihao - 09-26-2020, 09:38 PM
RE: BIBO tests - lingu - 09-27-2020, 12:00 PM
RE: BIBO tests - zhihao - 10-07-2020, 09:44 PM
RE: BIBO tests - zhihao - 09-26-2020, 09:57 PM
RE: BIBO tests - lingu - 09-27-2020, 12:14 PM
RE: BIBO tests - zhihao - 10-07-2020 11:01 PM
RE: BIBO tests - zhihao - 09-26-2020, 10:04 PM
RE: BIBO tests - lingu - 09-27-2020, 12:15 PM
RE: BIBO tests - zhihao - 10-07-2020, 11:21 PM
RE: BIBO tests - zhihao - 09-26-2020, 10:14 PM
RE: BIBO tests - lingu - 09-27-2020, 12:16 PM
RE: BIBO tests - zhihao - 10-07-2020, 11:29 PM
RE: BIBO tests - zhihao - 09-27-2020, 11:46 AM
RE: BIBO tests - lingu - 09-27-2020, 12:20 PM
RE: BIBO tests - zhihao - 10-07-2020, 11:38 PM
RE: BIBO tests - lingu - 10-09-2020, 12:16 PM
RE: BIBO tests - lingu - 10-09-2020, 05:09 PM
RE: BIBO tests - zhihao - 10-09-2020, 05:33 PM
RE: BIBO tests - zhihao - 10-11-2020, 08:49 PM
RE: BIBO tests - lingu - 10-12-2020, 12:33 AM
RE: BIBO tests - lingu - 10-12-2020, 04:27 AM
RE: BIBO tests - lingu - 11-30-2020, 05:19 PM
RE: BIBO tests - zhihao - 05-22-2021, 01:50 PM
RE: BIBO tests - lingu - 11-30-2020, 05:22 PM
RE: BIBO tests - lingu - 05-22-2021, 11:26 AM
RE: BIBO tests - zhihao - 08-13-2021, 01:27 AM

Forum Jump: