Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Selenium で 80% 以上の稼働削減を実現した話 / How to reduce op...

Selenium で 80% 以上の稼働削減を実現した話 / How to reduce operations by more than 80% with Selenium

社内ビアバッシュでの発表資料

Yu Kawanami

May 09, 2017
Tweet

More Decks by Yu Kawanami

Other Decks in Technology

Transcript

  1. サマリーログのイメージ • 実行結果の一覧性を重視 2017-04-18 13:52:46,033 START cluster1 server1 https://192.168.0.1/xxxxxxxxxxx/ 2017-04-18

    13:53:03,296 FINISH cluster1 server1 https://192.168.0.1/xxxxxxxxxxx/ 2017-04-18 13:53:03,296 START cluster1 server2 https://192.168.0.2/xxxxxxxxxxx/ 2017-04-18 13:53:10,277 ERROR cluster1 server2 https://192.168.0.2/xxxxxxxxxxx/ com.example.LoginTest testLogin 2017-04-18 13:53:46,165 FINISH cluster1 server2 https://192.168.0.2/xxxxxxxxxxx/ 2017-04-18 13:53:46,165 START cluster2 server3 https://192.168.0.3/xxxxxxxxxxx/ 2017-04-18 13:54:27,580 FINISH cluster2 server4 https://192.168.0.3/xxxxxxxxxxx/ 2017-04-18 13:54:27,581 START cluster2 server4 https://192.168.0.4/xxxxxxxxxxx/ 2017-04-18 13:54:47,138 FINISH cluster2 server4 https://192.168.0.4/xxxxxxxxxxx/ エラーが発生した場合は テストクラス名と テストメソッド名を出力
  2. スタックトレースログのイメージ • エラーの原因を特定するためにスタックトレースを出力 2017-04-18 13:53:10,280 ERROR cluster1 server2 https://192.168.0.2/xxxxxxxxxxx/ com.example.LoginTest

    testLogin org.openqa.selenium.TimeoutException: Expected condition failed: waiting for frame to be available: main (tried for 4 second(s) with 100 MILLISECONDS interval) Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:49:13 -0700' System info: host: 'M-KITAOKA-LT', ip: '192.168.71.151', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_25' Driver info: driver.version: unknown at org.openqa.selenium.support.ui.FluentWait.timeoutException(FluentWait.java:296) at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:265) at com.codeborne.selenide.SelenideTargetLocator.frame(SelenideTargetLocator.java:32) at com.example.TopPage.<init>(TopPage.java:13) at com.example.LoginPage.login(LoginPage.java:26) at com.example.LoginTest.testLogin(LoginTest.java:43) : :