如何针对用例测试Html5 / Javascript单页应用程序? [英] How Do I Test A Html5/Javascript Single Page Application Against Use Cases?

查看:82
本文介绍了如何针对用例测试Html5 / Javascript单页应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个单页应用程序,其中html / javascript作为前端,node.js作为后端,我正在寻找一个库来测试客户端和服务器端的用例。我想编写模拟用户交互并断言预期状态和行为的测试,从而覆盖所有涉及的部分而不进行单独的客户端和服务器端测试。

我试过jasmine.js但是不能实现我想要的,其他库似乎与我没有太大的不同,你建议采用什么方法?

I'm developing a single page application with html/javascript as a front-end and node.js as a backend, and i'm looking for a library to test both the client and server sides against the use cases. I would like to write tests that simulate the user interaction and assert the expected states and behaviors, thus covering all the involved pieces without doing separate client and server side testings.
I tried jasmine.js but could not achieve what i wanted, and the other libraries seem to be not much different to me, what approach do you suggest?

推荐答案

这篇关于如何针对用例测试Html5 / Javascript单页应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆