测试使用Selenium和PhantomJS AngularJS应用 [英] Testing AngularJS application using Selenium and PhantomJS

查看:495
本文介绍了测试使用Selenium和PhantomJS AngularJS应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想测试使用Selenium和PhantomJS我AngularJS应用程序,但我没有找到一个容易下手资源或视频教程。能否请您推荐一些好的资源为出发点。

I want to test my AngularJS application using Selenium and PhantomJS, but I am not finding an easy to start resource or video tutorial. Can you please suggest some good resource as a starting point.

推荐答案

作为@尼玛-石油部长说,你应该看看噶对您的应用程序运行单元测试。 本文将帮助您在这条路上。

As @Nima-Vaziri said, you should have a look at Karma to run unit tests on your app. This article will help you on this way.

然后运行端到端测试,由角队developped新转轮是量角器,你可以用这个演示启动:量角器演示

Then to run e2e tests, the new runner developped by the Angular team is Protractor and you can start with this demo : Protractor demo

要了解,这些文档是非常有用的对我说:

To understand, these docs were very useful to me:

  • Protractor Readme
  • Setting up your browser
  • Getting started

如果你要与AngularJS工作:你一定要知道的eggehead.io影片! 这一次是约量角器。但是,有很多视频教程的很有意思,教你如何建立一个角度应用程序!

If you're going to work with AngularJS: you definitely should know about eggehead.io videos! This one is about Protractor. But, there's a lot of video tutorials very interesting to teach you how to build an Angular app!

这篇关于测试使用Selenium和PhantomJS AngularJS应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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