8000 GitHub - geddski/protractor: E2E test framework for Angular apps
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

geddski/protractor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Protractor

Protractor is an end to end test framework for Angular applications built on top of webdriverJS.

To run the sample tests

Clone the github repository. Install the selenium-webdriver npm module

npm install selenium-webdriver

Start up a selenium server. By default, the tests expect the selenium server to be running at http://localhost:4444/wd/hub.

Start the test application

cd testapp; scripts/web-server.js

You can access the test app at

http://localhost:8000/app/index.html

Run the tests with

jasmine-node spec
mocha test

To just use Protractor

Start a selenium server.

Install the npm modules for protractor, which will install selenium-webdriver if it's not already there:

npm install protractor

In your test file, set up protractor:

var webdriver = require('selenium-webdriver');
var protractor = require('protractor');
// Configure and build your webdriver instance.
var ptor = protractor.wrapDriver(driver);

See spec/testAppSpec.js for examples of use.

Appendix A: Setting up a standalone selenium server

WebdriverJS does not natively include the selenium server - you must start a standalone selenium server. Download the selenium server. All you need is the latest selenium-server-standalone.

To use with chrome browsers, download chromedriver. More information about chromedriver

Start the selenium standalone with

java -jar selenium-server-standalone-2.x.x.jar

About

E2E test framework for Angular apps

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0