Advertisement
ntc_etc

setup.sh

Jan 17th, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.14 KB | None | 0 0
  1.  
  2. #! /bin/sh
  3.  
  4. # cd ./home
  5. # sh | wget https://pastebin.com/raw/GiB52F9z
  6.  
  7. # get micro editor
  8. wget https://github.com/zyedidia/micro/releases/download/v1.4.1/micro-1.4.1-linux64.tar.gz && \
  9. tar -zxvf micro-1.4.1-linux64.tar.gz && \
  10. cp micro-1.4.1/micro ./bin && \
  11.  
  12. # get google chrome
  13. curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
  14. echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list && \
  15. apt-get -yqq update && \
  16. apt-get -yqq install google-chrome-stable && \
  17.  
  18. # init project
  19. mkdir wdiopoc && \
  20. cd wdiopoc  && \
  21. npm init -y && \
  22. npm i --save-dev @wdio/cli @wdio/jasmine-framework  && \
  23. npm i --save-dev wdio-chromedriver-service chromedriver  && \
  24. npm i --save-dev selenium-assistant  && \
  25. ./node_modules/.bin/wdio config -y && \
  26. ./node_modules/.bin/wdio install framework jasmine && \
  27. wget https://pastebin.com/raw/x48VnXq7 -O wdio.conf.js && \
  28.  
  29. # get script
  30. mkdir test && \
  31. mkdir test/specs && \
  32. wget https://pastebin.com/raw/dHNS9nas -O test/specs/main.js && \
  33.  
  34. # run poc
  35. ./node_modules/.bin/wdio run wdio.conf.js --spec test/specs/main.js
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement