我现在统计整个 case 的测试时间,不知道怎么统计好点:
---
-
element_info: //android.widget.Button[@text='允许']
test_intr: 引导图
operate_type: click
find_type: by_xpath
test_id: 1001
-
element_info: cn.ibona.t1_beta:id/btn_skip
operate_type: click
find_type: by_id
-
operate_type: swipeLeft
time: 5
element_info: android.widget.ImageView
find_type: class_name
-
element_info: android.widget.Button
find_type: by_name
name: 立即开启
starttime = datetime.datetime.now()
......
endtime = datatime.datetime.now()
str((endtime - starttime).seconds) +"秒"
怎么才能科学的统计正确的时间?