Webpagetest脚本未填充屏幕元素

时间:2019-06-05 12:50:42

标签: automation scripting automated-tests webpagetest

我无法使WebPageTest正确填充应用程序中的登录字段,也无法告诉原因(我使用了错误的对象ID [这些是我在其他脚本工具中使用的相同对象ID,不确定为什么他们不在这里工作],使用错误的脚本命令,不执行等待步骤等)

我尝试了多种脚本变体,命令类型,对象标识方法,对WPT脚本文档的扫描后扫描-都无济于事

logData 0
navigate https://www.kroger.com/signin


logData 1
setValue id=SignIn-emailInput myusername
setValue id=SignIn-passwordInput myuserpassword
sendClickAndWait id=SignIn-submitButton

在运行日志中获取“页面加载超时”:

2019/06/05 12:44:11 - Test Created
2019/06/05 12:44:11 - Starting test (initiated by tester VM01-02-172.16.20.250)
2019/06/05 12:44:11 - Run 1 assigned to VM01-02-172.16.20.250
2019/06/05 12:44:12 - Run 2 assigned to VM03-06-172.16.20.209
2019/06/05 12:44:32 - Test Run Complete. Run: 2, Cached: 0, Done: 1, Tester: VM03-06-172.16.20.209
2019/06/05 12:44:32 - Marked shard 2 as complete: {"2":true}
2019/06/05 12:44:32 - Extracting 58054 byte uploaded file '/tmp/phpqGbtB9' to './results/19/06/05/6D/122c4d43e274916e483c4a9c9a513073'
2019/06/05 12:44:32 - Done Processing. Run: 2, Cached: 0, Done: , Tester: VM03-06-172.16.20.209
2019/06/05 12:46:14 - Test Run Complete. Run: 1, Cached: 0, Done: 1, 
Tester: VM01-02-172.16.20.250, Test Run Error: "Page Load Timeout"
2019/06/05 12:46:14 - Marked shard 1 as complete: {"2":true,"1":true}
2019/06/05 12:46:14 - All 2 runs are complete
2019/06/05 12:46:14 - Extracting 11184 byte uploaded file '/tmp/phpBmERS7' to './results/19/06/05/6D/122c4d43e274916e483c4a9c9a513073'
2019/06/05 12:46:14 - Done Processing. Run: 1, Cached: 0, Done: 1, Tester: VM01-02-172.16.20.250, Test Run Error: "Page Load Timeout"
2019/06/05 12:46:14 - Test Complete
2019/06/05 12:46:14 - Test post-processing complete

并且屏幕快照显示空的登录名和密码字段-我没有弄错我在做什么。

0 个答案:

没有答案