Skip to content

sohamnotes/protractor_test

Repository files navigation

Demonstration of Angular end to end testing using Protractor

Getting Started with this application

  1. Install Node.js and npm (You skip this if already installed).

  2. Install http-server np module by command "npm install -g http-server"

    1. Open a new command prompt and locate project directory for eg. "cd D:\Workspace\angularjs_client\protractor_test"
  3. Run command "http-server -o". Done........ It will open protractor_test application in chrome.....Enjoy and Test application manually.

  4. Steps to run test cases follow steps..... Install protractor using npm. use command "npm install -g protractor"

    i. Try running "protractor --version" in command prompt to make sure it's working.

    ii. The webdriver-manager is a helper tool to easily get an instance of a Selenium Server running. Use it to download the necessary binaries with: try running "webdriver-manager update" in command prompt.

    iii. Now start up a server with: "webdriver-manager start" in command prompt.

    iv. This will start up a Selenium Server and will output a bunch of info logs. Your Protractor test will send requests to this server to control a local browser. Leave this server running throughout the tutorial. You can see information about the status of the server at http://localhost:4444/wd/hub

  5. To run test cases

    Open new command prompt in project dirctory and located to folder "test-cases".

    For ex. "cd D:\Workspace\angularjs_client\protractor_test\test-cases"

    and run command "protractor conf.js"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors