我有一个测试用例,需要上传excel文件,需要等待成功,单击提交时大约需要10-15百万。 但是我等待大约6-7分钟时屏幕上的屏幕浏览器变得空无一物,就像我的屏幕截图一样。
这是一个代码:
TC_WEB_00005-AbnormalCase-Upload-Payroll-Not-Enought
[Documentation] Upload payroll for fail test
Set Selenium Speed 0.3s
Load Configuration Data ${config_path}
LoadCom_ID
Login TMC Web ${browser} ${url} ${user} ${pwd}
click element //*[@id="menu_file"]/div/div/ul/li[15]/a
click element //*[@id="menu_file"]/div/div/ul/li[15]/ul/li[12]/a
choose file id=excel ${CURDIR}/tmp_payroll_upoad.xlsx
choose file id=doc ${CURDIR}/res/mypdf.pdf
${time}= get time
${time}= Get Substring ${time} -8 -6
log to console ${time}
input text id=effective-hours ${time}
input text id=remark Test fromQA
click element //div[@class='col-md-2']/input[@class='btn']
element should be visible //div[@class='alert alert-danger'] 1800s
[Teardown] close browser
最后,我在下面收到erorr消息:
TimeoutException:消息:超时(会话信息: chrome = 66.0.3359.181)(驱动程序信息:chromedriver = 2.40.565498 (ea082db3280dd6843ebfb08a625e3eb905c4f5ab),平台= Windows NT 10.0.14393 x86_64)
PS:对于手动测试来说还不错,但仅在自动测试中会变成空白。