UI AUTOMATION - GitHub Pagesthoughtworks-china-qa.github.io/images/4.pdfBDD Cucumber JBehave...

Post on 26-Jun-2020

18 views 0 download

Transcript of UI AUTOMATION - GitHub Pagesthoughtworks-china-qa.github.io/images/4.pdfBDD Cucumber JBehave...

UI AUTOMATIONYang Jing

Who we are?

Fresh Man

Less than 6 months

Jingjing Mao Huan WangJing Yang

Cucumber

SitePrism

Capybara

Index

BDD

Selenium

Conclusion

BDD

Write a failing Acceptance Test

Refactor

Write a failing Unit Test

Unit Test Passed

Refactor

BDD

Cucumber

JBehave

SpecFlow

Selenium

Browser:IE,Firefox,Chrome

Platform:Windows,Linux,Android, IOS

Language:Java,Ruby,Python,Perl,PHP,C#

Component: Selenium IDE, Selenium RC,Selenium Grid

Capybara

Cucumber

PageObject

SitePrism

Gizmo

capybara-page-object

PageObject

element :name, ‘css_selector’

elements :name, ‘css_selector’

section :name, :ClassName, ‘css_selector’

sections :name, :ClassName, ‘css_selector’

iframe :name, :ClassName, ‘#id’

—SitePrism

Conclusion

feature

steps

PageObject

features/

features/step_definitions

lib/pages/

Q&A

Zip

Git

https://github.com/jyangTWer/thoughtworks-china-qa.github.io/tree/workshop_step1_login

git@github.com:jyangTWer/thoughtworks-china-qa.github.io.git

https://github.com/natritmeyer/site_prism

Reference

https://github.com/jnicklas/capybarahttps://github.com/cucumber/cucumber

Learning

https://github.com/jyangTWer/thoughtworks-china-qa.github.io/tree/workshop_step101

https://github.com/jyangTWer/thoughtworks-china-qa.github.io/tree/workshop_step2_create_form

Thanks!