Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
test_indel_zeng
08-18-2021, 07:53 PM (This post was last modified: 08-18-2021 07:57 PM by lingu.)
Post: #2
RE: test_indel_zeng
(05-22-2021 11:31 AM)lingu Wrote:  test_indel_zeng inserts and deletes the case of zengxingliang

test_indel_zeng.sh:

test_insert_zeng
test_delete_zeng

Actually it inserts and deletes. To make it more modular, I am splitting it into two programs,

It is infact a bit tricky. test_delete may delete a good case if the caseid matches. To avoid problems, i am creating two new cases:

corpus case: zengxingliang-newkey-deletetest.json
caseid "ffbe261c9e6311eabceb005056c00001"

inquiry case: zengxingliang-inquire-deletetest.json
caseid: "ffbe261c9e6311eabceb005056c00001"

Accordingly, i create two new tests:
test_insert_zengx: insert case "ffbe261c9e6311eabceb005056c00001" with zengxingliang-newkey-deletetest.json
test_inquire_zengx: query with new case "ffbe261c9e6311eabceb005056c00001" with zengxiangliang-inquire-deletetest.json

i will also modify your test program test_delete_testcase.sh to delete case "ffbe261c9e6311eabceb005056c00001" by modifying del_test_case.json

The test logic flow is:

t1. test_insert_zengx
t2. test_inquire_zengx -- should be success
t3. test_delete_testcase
t4. test_inquire_zengx -- should fail

RR zhihao
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
test_indel_zeng - lingu - 05-22-2021, 11:31 AM
RE: test_indel_zeng - lingu - 08-18-2021 07:53 PM
RE: test_indel_zeng - zhihao - 08-18-2021, 08:44 PM
RE: test_indel_zeng - lingu - 08-18-2021, 08:58 PM
RE: test_indel_zeng - lingu - 08-18-2021, 09:11 PM
RE: test_indel_zeng - lingu - 08-19-2021, 02:46 AM
RE: test_indel_zeng - lingu - 08-19-2021, 04:25 AM

Forum Jump: