Code Monkey home page Code Monkey logo

protractorstarterapp's Introduction

No longer maintained

[DEPRECATED] This repository is no longer maintained

While this project is fully functional, the dependencies are no longer up to date. You are still welcome to explore, learn, and use the code provided here.

Modus is dedicated to supporting the community with innovative ideas, best-practice patterns, and inspiring open source solutions. Check out the latest Modus Labs projects.

Modus Labs


Running e2e Tests

Install requirements using the following commands:

change dir to '/test/'

  • npm install appium -g
  • npm install ios-webkit-debug-proxy -g
  • npm install
  • npm run protractor-setup



## Required Android SDK components


  • "SDK Platform" for android-23, android-22 and android-21
  • "Android SDK Platform-tools (latest)
  • "Android SDK Build-tools" (latest)



## Required iOS

  • OSX Platform
  • Xcode installed
  • Components: iOS[version you need] simulator
  • OS updated to latest version



## Run the tests change dir to '/test/'

Run the tests on different enviroments

Dev Acceptance Tests

Run the app on local environment in web browser. Please see client/README.md

  • open Terminal and run the following command:
  • npm run protractor-test-ci
  • "If you receive a Selenium Server JAR not found please update protractor.conf.ci.js 'seleniumServerJar' to the new version of selenium server from node_modules/protractor/selenium"
  • go to test/e2e_reports/[dateTimeOfTestRun]/* (HTML test reports are saved at this location)

iOS Device

Build/Deploy the app on an iOS device. Please see client/README.md

  • connect the device via USB cable 
- open 2 Terminals and run the following commands:
  • appium
  • ios_webkit_debug_proxy -c [UDID of your iOS device]:27753 -d
  • edit protractor.conf.ios.dqa.js and change the bellow accordingly:
app               : '',
deviceName        : '',

udid              : '',
platformName      : 'iOS',

platformVersion   : '',
  • npm run protractor-test-ios

Android Device

Build/Deploy the app on an Android device. Please see client/README.md

  • connect the device via USB cable
  • open Terminal and run the following command:
  • adb start-server
  • adb devices (to verify adb connected devices)
  • appium
  • edit protractor.conf.android.dqa.js and change the bellow accordingly
:
app               : '',
deviceName        : '',

platformName      : 'Android',
platformVersion   : '',

  • npm run protractor-test-android

Running integration Tests

Install requirements using the following commands:

change dir to '/test/'

Run the tests

change dir to '/test/'

  • npm run integration-test

Running performance Tests

Tests are using a version of jMeter 3.0 with custom plugins

Install requirements

  • install java JDK and add to path
  • unzip test/performance/apache_jmeter_3.0.zip
  • open bin/jmeter.exec and edit the following (if not already edited):
line 91 to: HEAP="-Xms2048m -Xmx2048m"
line 96 to: NEW="-XX:NewSize=512m -XX:MaxNewSize=512m"

Run the tests

  • File > Open > [choose PerformanceTests.jmx]
  • under jMeter Users Thread Group change:
Number of Threads to desired value: Default = 10
Loop Count to desired value: Default = 10
  • this means 10 concurrent users for 10 times
  • Run > Start

Inspect the results

There are 4 listeners at the end of the Thread Group that provide useful info.

protractorstarterapp's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

protractorstarterapp's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.