Commit 54800336 authored by Kevin Di Lallo's avatar Kevin Di Lallo
Browse files

changed cypress test scenario name to demo1

parent 2ff7382c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -48,6 +48,10 @@ AdvantEDGE is a Mobile Edge Emulation Platform (MEEP) that runs on Docker & Kube

- [Build AdvantEDGE](docs/build.md)

## Testing

The AdvantEDGE platform test procedures are described [here](docs/testing.md)

## Concepts
An understanding of some AdvantEDGE concepts is helpful towards effectively using the platform and understanding how it works.  These core AdvantEDGE concepts are described [here](docs/concepts.md)
- [x] Micro-service Architecture
+2 −2
Original line number Diff line number Diff line
@@ -49,8 +49,8 @@ mkdir ~/gocode/bin

```
# Add the following lines at the end of your $HOME/.profile
GOPATH=$HOME/gocode
PATH=$PATH:$GOPATH/bin:/usr/local/go/bin
export GOPATH=$HOME/gocode
export PATH=$PATH:$GOPATH/bin:/usr/local/go/bin
```

###### STEP 5 - Apply profile updates
+18 −26
Original line number Diff line number Diff line
@@ -18,41 +18,33 @@ Before running the tests, do the following:
- [Install the demo1 scenario](../examples/demo1/README.md)
- Make sure there is no deployed scenario

## Run tests using Cypress CLI
## Run tests

```
cd js-apps
npm run cy:run
```
Test specification files are located [here](../js-apps/meep-frontend/cypress/integration/tests)

## Run tests using Cypress GUI
### Cypress CLI

```
npm run cy:open
# Run Cypress tests using CLI
cd js-apps/meep-frontend
npm run cy:run
```


- To run tests from web-ui folder:
          - CLI: npm run cy:run [-- --env meep_url="http://<Node IP>:<MEEP FE port>"]
          - GUI: npm run cy:open [-- --env meep_url="http://<Node IP>:<MEEP FE port>"]
          - NOTES:
            - Default IP & port is 127.0.0.1:30000
           - MEEP must be running
            - No scenario must be deployed
            - demo-svc scenario must exist in scenario DB
        - Updated package versions
>**NOTE**<br>
>Default AdvantEDGE URL used by cypress is http://127.0.0.1:30000<br>
>To run tests using another deployment:<br>
>`npm run cy:run -- --env meep_url="http://<Node IP>:<MEEP FE port>"`


The [_meepctl CLI tool_](meepctl/meepctl.md) tool is built & installed using a bash script.
## Cypress GUI

```
cd ~/AdvantEDGE/go-apps/meepctl
./install.sh
```

A first time install of meepctl must also be configured.

```
meepctl config set --ip <your-node-ip> --gitdir /home/<user>/AdvantEDGE
# Run/Debug Cypress tests using GUI
cd js-apps/meep-frontend
npm run cy:open
```

>**NOTE**<br>
>Default AdvantEDGE URL used by cypress is http://127.0.0.1:30000<br>
>To run tests using another deployment:<br>
>`npm run cy:open -- --env meep_url="http://<Node IP>:<MEEP FE port>"`
+0 −4
Original line number Diff line number Diff line
@@ -7,10 +7,6 @@ import { selector, click, check, type, select, verify, verifyEnabled } from '../
// Scenario Execution Tests
describe('MEEP Settings', function() {

  // Test Variables
  let defaultScenario = 'None';
  let demoScenario = 'demo-svc';

  // Test Setup
  beforeEach(() => {
    var meepUrl = Cypress.env('meep_url');
+1 −1
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ describe('Scenario Execution', function() {

  // Test Variables
  let defaultScenario = 'None';
  let demoScenario = 'demo-svc';
  let demoScenario = 'demo1';

  // Test Setup
  beforeEach(() => {
Loading