https://github.com/leandroh/angularjs-e2e-mock
AngularJS end-to-end testing: how to mock a real backend http request
https://github.com/leandroh/angularjs-e2e-mock
angularjs e2e-tests javascript mock protractor selenium-server
Last synced: 11 days ago
JSON representation
AngularJS end-to-end testing: how to mock a real backend http request
- Host: GitHub
- URL: https://github.com/leandroh/angularjs-e2e-mock
- Owner: leandroh
- Created: 2014-11-25T18:35:20.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-26T01:47:12.000Z (over 11 years ago)
- Last Synced: 2025-06-11T04:39:04.683Z (11 months ago)
- Topics: angularjs, e2e-tests, javascript, mock, protractor, selenium-server
- Language: JavaScript
- Size: 207 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AngularJS end-to-end test
How to mock a real backend http request. Follow the below steps:
***
### 1. Installing
Clone the repository:
```bash
https://github.com/leandroh/angularjs-e2e-mock
```
Install dependencies:
```bash
npm install
```
### 2. Running AngularJS application test
Start a static web server to run the test application:
```bash
npm start
```
### 3. Selenium Server
Open a new terminal window and start up the Selenium Server:
```bash
./node_modules/.bin/webdriver-manager start
```
### 4. Protractor tests
Run the tests against the sample application in a new terminal window:
```bash
npm test
```