213 Views
March 28, 18
スライド概要
2018/03/28 INTER-Mediator勉強会2018-#2発表資料
Web Application Developer / kintone CERTIFIED App Design Specialist 2020 / kintone CERTIFIED Customization Specialist 2020
Selenium WebDriverΛར༻ͨ͠ αϯϓϧΞϓϦέʔγϣϯ ͷςετ 2018/03/28 INTER-Mediatorษڧձ2018-#2ൃදࢿྉ দඌಞʢࣜגձࣾΤϛοΫʣ
αϯϓϧ ΞϓϦέʔγϣϯ • INTER-MediatorͷϦϙδτϦʹ͋Δ SamplesϑΥϧμ https://github.com/INTER-Mediator/INTERMediator/tree/master/Samples/
VMͰࢼ༻Մೳ • INTER-Mediator-Server VMΛͬͯαϯ ϓϧΞϓϦέʔγϣϯΛࢼ༻Մೳ http://inter-mediator.info/ja/for-novices/ vm.html
Α͘໘͢Δ • ػೳՃ༷มߋ࣌ʹαϯϓϧͷಈ ࡞ʹ͕ग़͍ͯΔ͜ͱ͕ͨ·ʹ͋Δ • ͙͢ʹʹͳ͍͖ͯͰ͕ͱ͘͜ؾ ͍ঢ়گ ‣ Γࣗಈςετ͕ඞཁ
INTER-MediatorͱCI • GitHubͰιʔείʔυΛཧɾڞ༗ • GitHubͷϦϙδτϦʹίϛοτ͢Δͱ CIαʔϏε্Ͱςετ͕ࣗಈ࣮ߦ
INTER-MediatorͱCI • ࡏݱར༻͍ͯ͠ΔCIαʔϏε • Travis CI • CircleCI • GitLab CI
CIαʔϏε্Ͱࣗಈςετ ࣗಈςετ͓Αͼ φΠτϦʔϏϧυͷੜ WebαΠτʹ ίϯςϯπΛө push pull request pull ςετ݁ՌΛ௨ Thanks to GitHub, Travis CI, CircleCI, GitLab.com and Slack.
CIͰE2Eςετ • CircleCI͓ΑͼGitLab CI্ͰDockerΛซ ༻ͨ͠E2Eςετʢϒϥβʔςετʣ Λࠓޙগͣͭ͠උ༧ఆ • ࠓͷͱ͜ΖSelenium WebDriver + Ruby Λར༻
Selenium WebDriver • WebϒϥβʔͷࣗಈԽπʔϧͱͯ͠ WebΞϓϦͷςετʹ͑Δ • ෳͷϓϥοτϑΥʔϜʹରԠ • ෳͷWebϒϥβʔʹରԠ • ͞·͟·ͳޠݴςεςΟϯάϑϨʔ ϜϫʔΫʹରԠ
ඞཁͳͷ • INTER-Mediator-Server VM • Ruby • gem install rspec selenium-webdriver • WebϒϥβʔͱυϥΠόʔ • Google Chrome & ChromeDriver • Firefox & geckodriver
࣮ߦํ๏ • git clone https://github.com/INTERMediator/INTER-Mediator • cd INTER-Mediator • ADDR=192.168.56.101 BROWSER=chrome rspec --defaultpath=dist-docs/docker/spec -f doc -c distdocs/docker/spec/samples/samples_spec.rb
Demo
CIͷϝϦοτ • ূݕίετΛେ෯ʹ͖ͰݮΔ • Λૣ͠ݟൃʹظ͍͢ • ࣗ৴Λ࣋ͬͯमਖ਼ػೳՃΛߦ͑Δ