首先,我有以下数据:
****************************************************** ******************* 测试用例 ****************************************************** ******************* 最近 1 次运行的测试结果 测试标题组 PRIO R-STAT R-TIME VERDICT VERDICT-TEXT ------------------------- ------------- --------------- -------- ---- ------ ------------ ----- --- ------------------------------------------------------------ --- TESTCASE1 TC1 ABC 1 PASS 00:00:09.572 没有通过 TESTCASE2 TC2 DEF 2 PASS 00:00:01.650 没有通过 -------------------------------------------------- -------------------------------------------------- 数量:2 TC数:2 ****************************************************** ******************* 判决:通过 ****************************************************** *******************
我想执行行:
TESTCASE1 TC1 ABC 1 PASS 00:00:09.572 没有通过 TESTCASE2 TC2 DEF 2 PASS 00:00:01.650 没有通过
并拆分第一行和最后一行。
我怎样才能做到这一点?
额外的:
抱歉回复太晚了,我想分手
*********************************************************************
TEST CASE
*********************************************************************
test results for the last 1 run(s)
TEST TITLE GROUP PRIO R-STAT R-TIME VERDICT VERDICT-TEXT
------------------------- ---------------------------------------- -------- ---- ------ ------------ -------- --------------------------------------------------
只处理了两行
TESTCASE1 TC1 ABC 1 PASS 00:00:09.572 PASS nothing
TESTCASE2 TC2 DEF 2 PASS 00:00:01.650 PASS nothing
i use while loop to check line by line, the problem is it will be looped all of lines whereas i want two lines only.