start node

Submitted by Lizhe on Wed, 04/04/2018 - 10:07

cd /root/.jenkins/workspace/fr-commerce-front-admin/app

npm install

python /root/pyscripts/sedByPy.py ./scripts/start.js "const DEFAULT_PORT = parseInt(process.env.PORT, 10) || 3000;" "const DEFAULT_PORT = parseInt(process.env.PORT, 10) || 3001;"
python /root/pyscripts/sedByPy.py ./scripts/start.js "openBrowser(urls.localUrlForBrowser);" " "

npm install http-server -g
npm start &

python /root/pyscripts/test.py 

 

 

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --args --disable-web-security  --user-data-dir="%UserProfile%\AppData\Local\Google\Chrome\User Data"

 

accadmin
P@ssw0rd

http://localhost:3000/dashboard/uq/ca/en/login

 

1. npm install
2. D:/FR/temp/ACPF-3342/WebATF/node_modules/selenium-standalone/lib/default-

config.js中替换为
module.exports = {
  baseURL: 'http://npm.taobao.org/mirrors/selenium',
  version: '3.7.1',
  drivers: {
    chrome: {
      version: '2.35',
      arch: process.arch,
      baseURL: 'http://npm.taobao.org/mirrors/chromedriver'
    }
  }
};
3.npm run webdriver-install
4.npm run webdriver-start
5.npm run test-admin

 

https://www.chromedownloads.net/chrome64linux-stable/740.html