4 def test_001_i_want_to_move_to_specific_test_and_check_it(admlc, admlf):
8 response = admlc.postDict("/testid-description/{}".format(flow), { "description":"testid-description.test_001.flow{}".format(flow) })
10 response = admlc.postDict("/testid-description/{}".format(flow), { "description":"testid-description.test_001.flow{}".format(flow) })
13 responseBodyRef = { "success":"true", "response":"Done" }
14 admlc.assert_response__status_body_headers(response, 200, responseBodyRef)
16 # Go to the second test:
19 response = admlc.postDict("/test-goto", { "id":flow })
22 responseBodyRef = { "success":"true", "response":"Position updated for id provided ({})".format(flow) }
23 admlc.assert_response__status_body_headers(response, 200, responseBodyRef)
26 response = admlc.post("/test-clear")
28 def test_002_i_want_to_move_to_a_test_out_of_range_and_check_it(admlc, admlf):
32 response = admlc.postDict("/testid-description/{}".format(flow), { "description":"testid-description.test_001.flow{}".format(flow) })
34 response = admlc.postDict("/testid-description/{}".format(flow), { "description":"testid-description.test_001.flow{}".format(flow) })
37 responseBodyRef = { "success":"true", "response":"Done" }
38 admlc.assert_response__status_body_headers(response, 200, responseBodyRef)
40 # Go to the second test:
43 response = admlc.postDict("/test-goto", { "id":(flow+1) }) # flow+1 is out of range
46 responseBodyRef = { "success":"false", "response":"Internal error (check ADML traces): cannot found test id ({})".format(flow+1) }
47 admlc.assert_response__status_body_headers(response, 200, responseBodyRef)
50 response = admlc.post("/test-clear")