From a08e5c5317a5e1568ff11a47f6fe94741eb12af4 Mon Sep 17 00:00:00 2001 From: David Baldwynn Date: Tue, 21 Nov 2017 09:59:42 -0800 Subject: [PATCH] removed username from .env file in setup script --- scripts/setup.js | 1 + selenium/.editorconfig | 17 ----------------- selenium/.gitignore | 9 --------- selenium/.vscode/launch.json | 27 --------------------------- selenium/README.md | 28 ---------------------------- selenium/commons/commons.md | 1 - selenium/config.json | 14 -------------- selenium/hosts | 0 selenium/install.sh | 4 ---- selenium/package.json | 25 ------------------------- selenium/run.bat | 7 ------- selenium/run.sh | 5 ----- selenium/screenshots/screenshots.md | 1 - selenium/uploadfiles/uploadfiles.md | 1 - 14 files changed, 1 insertion(+), 139 deletions(-) delete mode 100644 selenium/.editorconfig delete mode 100644 selenium/.gitignore delete mode 100644 selenium/.vscode/launch.json delete mode 100644 selenium/README.md delete mode 100644 selenium/commons/commons.md delete mode 100644 selenium/config.json delete mode 100644 selenium/hosts delete mode 100644 selenium/install.sh delete mode 100644 selenium/package.json delete mode 100644 selenium/run.bat delete mode 100644 selenium/run.sh delete mode 100644 selenium/screenshots/screenshots.md delete mode 100644 selenium/uploadfiles/uploadfiles.md diff --git a/scripts/setup.js b/scripts/setup.js index d8be5236..70c005ef 100644 --- a/scripts/setup.js +++ b/scripts/setup.js @@ -242,6 +242,7 @@ var createENVFile = function() { var username = answers['username']; var pass = answers['password']; delete answers['email']; + delete answers['username']; delete answers['password']; envfile.stringify(answers, function (err, str) { diff --git a/selenium/.editorconfig b/selenium/.editorconfig deleted file mode 100644 index 5a13b97d..00000000 --- a/selenium/.editorconfig +++ /dev/null @@ -1,17 +0,0 @@ -# EditorConfig helps developers define and maintain consistent -# coding styles between different editors and IDEs -# editorconfig.org - -root = true - -# Apply for all files -[*] - -charset = utf-8 - -indent_style = space -indent_size = 4 - -end_of_line = lf -insert_final_newline = true -trim_trailing_whitespace = true diff --git a/selenium/.gitignore b/selenium/.gitignore deleted file mode 100644 index 704c683c..00000000 --- a/selenium/.gitignore +++ /dev/null @@ -1,9 +0,0 @@ -.DS_Store -.idea -node_modules -npm-debug.log -uirecorder.log -reports -screenshots/**/*.png -screenshots/**/*.html -screenshots/**/*.json diff --git a/selenium/.vscode/launch.json b/selenium/.vscode/launch.json deleted file mode 100644 index ec025318..00000000 --- a/selenium/.vscode/launch.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - // Use IntelliSense to learn about possible Node.js debug attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "type": "node", - "request": "launch", - "name": "Debug UIRecorder Local", - "program": "${workspaceRoot}/node_modules/mocha/bin/_mocha", - "cwd": "${workspaceRoot}", - "args": ["--reporter", "mochawesome-uirecorder", "${file}"], - "env": { - "webdriver": "127.0.0.1" - } - }, - { - "type": "node", - "request": "launch", - "name": "Debug UIRecorder Default", - "program": "${workspaceRoot}/node_modules/mocha/bin/_mocha", - "cwd": "${workspaceRoot}", - "args": ["--reporter", "mochawesome-uirecorder", "${file}"] - } - ] -} \ No newline at end of file diff --git a/selenium/README.md b/selenium/README.md deleted file mode 100644 index 62ab2ba6..00000000 --- a/selenium/README.md +++ /dev/null @@ -1,28 +0,0 @@ -UI Recorder test sample project -================ - -It's a UI Recorder test sample project. - -Save your test code here. - -Get more info: [http://uirecorder.com/](http://uirecorder.com/) - -How to run test case? -================ - -1. npm install -2. source run.sh ( Linux|Mac ) or run.bat ( Windows ) - -How to dock jenkins? -================ - -1. Add commands - - source ./install.sh - source ./run.sh - -2. Add reports - - > JUnit: reports/index.xml - - > HTML: reports/ diff --git a/selenium/commons/commons.md b/selenium/commons/commons.md deleted file mode 100644 index 730f82ee..00000000 --- a/selenium/commons/commons.md +++ /dev/null @@ -1 +0,0 @@ -Please save common test case here. \ No newline at end of file diff --git a/selenium/config.json b/selenium/config.json deleted file mode 100644 index a6e6c57a..00000000 --- a/selenium/config.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "webdriver": { - "host": "127.0.0.1", - "port": "4444", - "browsers": "chrome" - }, - "vars": {}, - "recorder": { - "pathAttrs": "data-id,data-name,type,data-type,role,data-role,data-value", - "attrValueBlack": "", - "classValueBlack": "", - "hideBeforeExpect": "" - } -} \ No newline at end of file diff --git a/selenium/hosts b/selenium/hosts deleted file mode 100644 index e69de29b..00000000 diff --git a/selenium/install.sh b/selenium/install.sh deleted file mode 100644 index 67759d80..00000000 --- a/selenium/install.sh +++ /dev/null @@ -1,4 +0,0 @@ -ls ~/nvm || git clone https://github.com/creationix/nvm.git ~/nvm -source ~/nvm/nvm.sh -nvm install v7.10.0 -npm install diff --git a/selenium/package.json b/selenium/package.json deleted file mode 100644 index 03727c90..00000000 --- a/selenium/package.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "uirecorderTest", - "version": "1.0.0", - "description": "", - "main": "", - "dependencies": { - "chai": "3.5.0", - "jwebdriver": "2.2.4", - "mocha": "3.1.2", - "mocha-parallel-tests": "1.2.4", - "mochawesome-uirecorder": "1.5.22", - "resemblejs-node": "1.0.0", - "selenium-standalone": "6.x.x" - }, - "devDependencies": { - }, - "scripts": { - "installdriver": "./node_modules/.bin/selenium-standalone install --drivers.firefox.baseURL=http://npm.taobao.org/mirrors/geckodriver --baseURL=http://npm.taobao.org/mirrors/selenium --drivers.chrome.baseURL=http://npm.taobao.org/mirrors/chromedriver --drivers.ie.baseURL=http://npm.taobao.org/mirrors/selenium", - "server": "./node_modules/.bin/selenium-standalone start", - "test": "./node_modules/.bin/mocha \"*/**/*.spec.js\" --reporter mochawesome-uirecorder --bail", - "singletest": "./node_modules/.bin/mocha --reporter mochawesome-uirecorder --bail", - "paralleltest": "./node_modules/.bin/mocha-parallel-tests \"*/**/*.spec.js\" --reporter mochawesome-uirecorder --max-parallel 5 --bail" - }, - "author": "" -} diff --git a/selenium/run.bat b/selenium/run.bat deleted file mode 100644 index da1ec242..00000000 --- a/selenium/run.bat +++ /dev/null @@ -1,7 +0,0 @@ -@echo off - -if "%1" neq "" ( - npm run singletest %1 %2 -) else ( - npm run paralleltest -) diff --git a/selenium/run.sh b/selenium/run.sh deleted file mode 100644 index 6f479e13..00000000 --- a/selenium/run.sh +++ /dev/null @@ -1,5 +0,0 @@ -if [ "$1" = "" ]; then - npm run paralleltest -else - npm run singletest $1 $2 -fi diff --git a/selenium/screenshots/screenshots.md b/selenium/screenshots/screenshots.md deleted file mode 100644 index ec2da3ba..00000000 --- a/selenium/screenshots/screenshots.md +++ /dev/null @@ -1 +0,0 @@ -Test screenshots saved here. \ No newline at end of file diff --git a/selenium/uploadfiles/uploadfiles.md b/selenium/uploadfiles/uploadfiles.md deleted file mode 100644 index b9f2a65c..00000000 --- a/selenium/uploadfiles/uploadfiles.md +++ /dev/null @@ -1 +0,0 @@ -Please save upload files here.