PHPer のための PHPUnit と Selenium を使った
ブラウザテストのすゝめ

218473ff7abad0fcd72865da2b23bb5b?s=47 memory
September 21, 2019

PHPer のための PHPUnit と Selenium を使った
ブラウザテストのすゝめ

- PHP Conference Hokkaido in Japan

English Title:
Evolution for Browser Testing with the PHPUnit and the Selenium for PHP users.

218473ff7abad0fcd72865da2b23bb5b?s=128

memory

September 21, 2019
Tweet

Transcript

  1. / / PHP 2019 PHPer PHPUnit Selenium 
 © -

    BASE, Inc.
  2. © - BASE, Inc. Who am I? (@m m r

    ) BASE PHP, TypeScript
  3. © - BASE, Inc. PHP JVM Hello World builderscon tokyo

    https://speakerdeck.com/memory /php-de-jvm-woshi-zhuang-site- hello-world-wochu-li-surumade ( ) PHP JVM (Java Virtual Machine) PHPerKaigi https://speakerdeck.com/memory /phperkaigi- ( ) 2 Elasticsearch PHP 2019 https://speakerdeck.com/memory /php-conference-sendai- - presentation-slides
  4. © - BASE, Inc.

  5. © - BASE, Inc. 


  6. © - BASE, Inc.

  7. © - BASE, Inc. PHPUnit Selenium 


  8. © - BASE, Inc.

  9. © - BASE, Inc. Selenium

  10. © - BASE, Inc. Selenium Selenium

  11. © - BASE, Inc.

  12. © - BASE, Inc. JavaScript QA 1 2

  13. © - BASE, Inc.

  14. © - BASE, Inc. NO

  15. © - BASE, Inc. Selenium E E

  16. © - BASE, Inc. Selenium

  17. © - BASE, Inc. Selenium

  18. © - BASE, Inc. Selenium Web PHP Facebook facebook/webdriver GitHub:

    https://github.com/facebook/php-webdriver
  19. © - BASE, Inc. Selenium

  20. © - BASE, Inc. Selenium 
 (IE, Firefox, Chrome )

    JavaScript
  21. © - BASE, Inc.

  22. © - BASE, Inc. Selenium 


  23. © - BASE, Inc. Selenium JavaScript DOM

  24. © - BASE, Inc. Selenium reCAPTCHA Standalone Node Java

  25. © - BASE, Inc.

  26. © - BASE, Inc. PHPUnit PHP Container Selenium Standalone Selenium

    Container Chrome Facebook WebDriver Web Page ( ) Hub JS 
 (2) (3) 
 (4) ( ) PHPUnit 
 (5)
  27. © - BASE, Inc.

  28. © - BASE, Inc. Selenium

  29. © - BASE, Inc. Selenium Chrome Standalone Selenium 
 Headless

    Docker Docker
  30. © - BASE, Inc.

  31. © - BASE, Inc.

  32. © - BASE, Inc. https://github.com/memory-agape/php-conference- webdriver-testing

  33. © - BASE, Inc. PHPUnit

  34. © - BASE, Inc.

  35. © - BASE, Inc.

  36. © - BASE, Inc. composer require facebook/php-webdriver GitHub: https://github.com/facebook/php-webdriver ※

    Docker ্Ͱಈ͔͞ͳ͍৔߹͸ɺ Selenium ͷ Standalone ͕ผ్ඞཁͰ͢ɻ
  37. © - BASE, Inc. WebDriver

  38. © - BASE, Inc. WebDriver

  39. © - BASE, Inc. WebDriver Selenium Hub

  40. © - BASE, Inc. WebDriver Chrome

  41. © - BASE, Inc. WebDriver SSL

  42. © - BASE, Inc. WebDriver

  43. © - BASE, Inc. WebDriver Selenium JavaScript

  44. © - BASE, Inc.

  45. © - BASE, Inc. JavaScript DOM

  46. © - BASE, Inc.

  47. © - BASE, Inc. 
 added_by_js 
 added_by_js 
 +

  48. © - BASE, Inc. added_by_js input JavaScript 


  49. © - BASE, Inc.

  50. © - BASE, Inc. 2 added_by_js

  51. © - BASE, Inc.

  52. © - BASE, Inc.

  53. © - BASE, Inc.

  54. © - BASE, Inc. DOM

  55. © - BASE, Inc. input

  56. © - BASE, Inc. Hello World!

  57. © - BASE, Inc. Submit

  58. © - BASE, Inc. Submit (onSubmit )

  59. © - BASE, Inc.

  60. © - BASE, Inc.

  61. © - BASE, Inc.

  62. © - BASE, Inc.

  63. © - BASE, Inc.

  64. © - BASE, Inc.

  65. © - BASE, Inc. DOM

  66. © - BASE, Inc. JavaScript input

  67. © - BASE, Inc. Submit

  68. © - BASE, Inc. Submit (onSubmit )

  69. © - BASE, Inc.

  70. © - BASE, Inc.

  71. © - BASE, Inc.

  72. © - BASE, Inc.

  73. © - BASE, Inc. Selenium 


  74. © - BASE, Inc. Selenium 


  75. © - BASE, Inc.

  76. © - BASE, Inc. 1 BASE

  77. © - BASE, Inc. 2

  78. © - BASE, Inc. 1 2 common.php common.php require

  79. © - BASE, Inc.

  80. © - BASE, Inc. common.php QA 1 PHPUnit + Selenium

  81. © - BASE, Inc. 


  82. © - BASE, Inc. &&

  83. © - BASE, Inc. common.php 


  84. © - BASE, Inc. DEMO

  85. © - BASE, Inc.

  86. © - BASE, Inc. Selenium PHP PHPUnit Selenium QA Selenium

  87. © - BASE, Inc. Selenium

  88. © - BASE, Inc.

  89. © - BASE, Inc. THANK YOU FOR YOUR LISTENING