English 中文(简体)
是否可使用测试 JavaScript 应用程序单页? [已关闭]
原标题:Can Selenium be used to testing single page JavaScript apps? [closed]

我们不允许为软件库、辅导、工具、书籍或其他场外资源寻求建议的问题。 您可以编辑问题, 以便用事实和引用来解答问题。

Closed 5 years ago.

用户界面测试启动器在这里, 是否可使用来测试 JavaScript 应用程序单页的用户界面测试?

应用程序使用 async AJAX/ Web Socket 请求, 服务端点经过测试, 但我也需要 UI 测试 。

除了以外,你还推荐其他什么工具?

最佳回答

对于那些重度在刺青上的页面来说,这是完全正常的, 你只需要对每次调用的方法的超时时间做一些细微调整, 因为当ajax方法完成时(就像一页完成加载时), 不一定会有一个明显信号给Serium( ) 。

退出超时使用率 :

http://seleniumhq.org/docs/04_webdriver_advanced.html

问题回答

Yes. It can be used to do that. If allows you to simulate button clicks and wait for results to load.

使用单页应用程序时,您不应遇到任何麻烦。

它有工具可以记录您的步骤和测试案例。 尝试一下。 即使是初学者也很容易。





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签