An open API service indexing awesome lists of open source software.

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

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
```