BIBO tests
|
09-26-2020, 01:49 PM
Post: #1
|
|||
|
|||
BIBO tests
BIBO tests
BIBO provides the following tests server_addr: server address bibo_server_addr="localhost" bibo_server_port=62818 test_insert.sh: Code: casefile=zengxingliang.json test_inquire_shen.sh: 用于测试处理20288个字符的查询请求时,是否会出现没有返回值的情况 test_inquire.sh: Code: casefile=chendengchang-with-blank-line.json test_select.sh: Code: casefile=sel_zengxingliang.json test_delete_zeng test_indel_zeng test_crds.sh: insert, inquire, select, delete and select. test_isds.sh: test selecting a non-existent and an existent case Code: ./test_insert.sh test_isdsd.sh: test deleting a non-existent case Code: ./test_isds.sh test_pressure.sh: Code: bibo_test_iter_cnt=1 test_insert_testcase.sh: insert test_case.json which has caseid:"aaaaa..." and casetitle: "计算机案例" test_delete_testcase.sh: request to delete case with caseid "aaaaa..." Historical info: test_delete.sh: Code: casefile=del_zengxingliang.json --- 20210813/zhihao: add test case 20210522/lingu: indel 20201009/zhihao: add $bibo_server_addr and $bibo_server_port |
|||
09-26-2020, 01:53 PM
(This post was last modified: 09-26-2020 01:57 PM by lingu.)
Post: #2
|
|||
|
|||
RE: BIBO tests
20200926/lingu ran 'make test' but it failed.
Code: 12:38:28 lingu@g1b-2:/home/lingu/forest/prada/prada> make -C procuratorate test I removed maketest and made crds an individual test. zhihao - Pls add our header to the make file. The header includes copyright notes, description of the file, and other info such as authors. You may refer to other files, such as procone.py, for reference. |
|||
09-26-2020, 07:11 PM
Post: #3
|
|||
|
|||
RE: BIBO tests
(09-26-2020 01:53 PM)lingu Wrote: 20200926/lingu ran 'make test' but it failed. Added header to test*.sh Code: [zhihao@g1b-2 procuratorate]$ git status |
|||
09-26-2020, 09:38 PM
Post: #4
|
|||
|
|||
RE: BIBO tests
design test_select.sh:
Code: insert_ret = run test_insert.sh RR lingu |
|||
09-26-2020, 09:57 PM
Post: #5
|
|||
|
|||
RE: BIBO tests
design test_delete.sh:
Code: insert_ret = run test_insert.sh RR lingu |
|||
09-26-2020, 10:04 PM
Post: #6
|
|||
|
|||
RE: BIBO tests
design test_insert.sh:
Code: ret = send insert request zengxingliang.json to trajan.d-thinker.org 20050 RR lingu |
|||
09-26-2020, 10:14 PM
Post: #7
|
|||
|
|||
RE: BIBO tests
design test_inquire.sh:
Code: ret = send inquire request chendengchang-with-blank-line.json to trajan.d-thinker.org 20050 RR lingu |
|||
09-27-2020, 11:46 AM
Post: #8
|
|||
|
|||
RE: BIBO tests
add test_pressure.sh design info:
Code: for (i in 1 to 10) { RR lingu |
|||
09-27-2020, 12:00 PM
(This post was last modified: 09-27-2020 12:04 PM by lingu.)
Post: #9
|
|||
|
|||
RE: BIBO tests
(09-26-2020 09:38 PM)zhihao Wrote: design test_select.sh: can you just run an insert test here? Quote:if ($insert_ret != 0) dont hard-code trajan. Use a var. Can you make a simple select test? Quote:if ($ret == 200) { Can you just invoke the delete test? Quote:ret = send select request sel_zengxingliang.json to trajan.d-thinker.org 20050 You can summarize the block above as 'expect 404, otherwise return -1'. -1 is not a good exit status. Use a specific value, such as 99, to indicate the error. This seems to be a combined test. You can name it test-isds -- insert, select, delete, select. |
|||
09-27-2020, 12:14 PM
(This post was last modified: 09-27-2020 12:14 PM by lingu.)
Post: #10
|
|||
|
|||
RE: BIBO tests
(09-26-2020 09:57 PM)zhihao Wrote: design test_delete.sh: I think you can remove the above. Quote:ret = send delete request del_zengxingliang.json to trajan.d-thinker.org 20050 Pls return different exit code for 200 and 404 scenarios. Quote:ret = send delete request del_zengxingliang.json to trajan.d-thinker.org 20050 You can add the case of deleting a non-existent case in another test, such as isds -- just make it isdsd. |
|||
« Next Oldest | Next Newest »
|
- View a Printable Version
- Send this Thread to a Friend
- Subscribe to this thread
- Show the subscribers of this thread:
- Add subscribers to this thread: