|
uirecorder 脚本录制成功,跑脚本的时候发现有很多脚本都报AssertionError错误,各位有什么方法解决嘛?
product/cdn : chrome
√ url: http://www.163yun.com (2043ms)
√ waitBody: (549ms)
√ click: 产品 ( li:nth-child(1) > a.z-cursor-d, 17, 40, 0 ) (671ms)
√ scrollElementTo: li:nth-child(1) > div.navs-menus > div.g-c-bd > div.g-r, 0, 200 (640ms)
√ scrollElementTo: li:nth-child(1) > div.navs-menus > div.g-c-bd > div.g-r, 0, 239 (628ms)
√ click: CDN 跨地域、跨运营商... ( div:nth-child(6) > a:nth-child(3), 153, 28, 0 ) (663ms)
√ waitBody: (532ms)
1) expect: text, div.text > div:nth-child(1) > h2:nth-child(1), equal, CDN
2) click: 功能特点 ( span[data-id="trait"], 46, 12, 0 )
√ scrollTo: 0, 545
√ scrollTo: 0, 145
3) click: 帮助文档 ( li[data-id="doc"], 15, 38, 0 )
√ scrollTo: 0, 1368
√ scrollTo: 0, 868
√ scrollTo: 0, 868
12 passing (2m)
3 failing
1) product/cdn : chrome expect: text, div.text > div:nth-child(1) > h2:nth-child(1), equal, CDN:
AssertionError: expected [Error: AssertionError: expected [Error: Wait element displayed timeout: div.text > div:nth-child(1) > h2:nth-child(1) ,30000ms] not to be an error] to equal 'CDN'
2) product/cdn : chrome click: 功能特点 ( span[data-id="trait"], 46, 12, 0 ):
Error: the string "Wait element displayed timeout: span[data-id=\"trait\"] ,30000ms" was thrown, throw an Error
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
3) product/cdn : chrome click: 帮助文档 ( li[data-id="doc"], 15, 38, 0 ):
Error: the string "Wait element displayed timeout: li[data-id=\"doc\"] ,30000ms" was thrown, throw an Error
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
|
|