Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/sh
- # cd ./home
- # sh | wget https://pastebin.com/raw/GiB52F9z
- # get micro editor
- wget https://github.com/zyedidia/micro/releases/download/v1.4.1/micro-1.4.1-linux64.tar.gz && \
- tar -zxvf micro-1.4.1-linux64.tar.gz && \
- cp micro-1.4.1/micro ./bin && \
- # get google chrome
- curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
- echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list && \
- apt-get -yqq update && \
- apt-get -yqq install google-chrome-stable && \
- # init project
- mkdir wdiopoc && \
- cd wdiopoc && \
- npm init -y && \
- npm i --save-dev @wdio/cli @wdio/jasmine-framework && \
- npm i --save-dev wdio-chromedriver-service chromedriver && \
- npm i --save-dev selenium-assistant && \
- ./node_modules/.bin/wdio config -y && \
- ./node_modules/.bin/wdio install framework jasmine && \
- wget https://pastebin.com/raw/x48VnXq7 -O wdio.conf.js && \
- # get script
- mkdir test && \
- mkdir test/specs && \
- wget https://pastebin.com/raw/dHNS9nas -O test/specs/main.js && \
- # run poc
- ./node_modules/.bin/wdio run wdio.conf.js --spec test/specs/main.js
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement