selenium, testng , selenium grid & best practices

21
Selenium, testNG et Selenium Grid by Mathilde Lemée @MathildeLemee 1

Upload: mathildelemee

Post on 28-Nov-2014

3.005 views

Category:

Documents


4 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Selenium, testNG , Selenium Grid & Best Practices

Selenium, testNG et Selenium Grid

by Mathilde Lemée

@MathildeLemee

1

Page 2: Selenium, testNG , Selenium Grid & Best Practices

Mathilde Lemée

@MathildeLemee

Page 3: Selenium, testNG , Selenium Grid & Best Practices

Pourquoi ?

Page 4: Selenium, testNG , Selenium Grid & Best Practices

testNGenabled

groups

dependsOnGroups / dependsOnMethods

invocationCount / threadPoolSize

dataProvider / @Parameters

expectedExceptions / expectedExceptionsMessageRegExp

Page 5: Selenium, testNG , Selenium Grid & Best Practices
Page 6: Selenium, testNG , Selenium Grid & Best Practices

#1. Ne pas utiliser Selenium IDE

Page 7: Selenium, testNG , Selenium Grid & Best Practices

#2. World > XPath

Page 8: Selenium, testNG , Selenium Grid & Best Practices
Page 9: Selenium, testNG , Selenium Grid & Best Practices

#3. Utiliser le pattern Page Object

#3. Utiliser le pattern Page Object

Page 10: Selenium, testNG , Selenium Grid & Best Practices
Page 11: Selenium, testNG , Selenium Grid & Best Practices
Page 12: Selenium, testNG , Selenium Grid & Best Practices

#4. Découpler le test et les données

Page 13: Selenium, testNG , Selenium Grid & Best Practices

#5. Un test = une assertion

Page 14: Selenium, testNG , Selenium Grid & Best Practices

#6. Conserver les tests aussi propre que le code métier

Page 15: Selenium, testNG , Selenium Grid & Best Practices

#7. Penser //

Page 16: Selenium, testNG , Selenium Grid & Best Practices

#8. Construire des tests atomiques

Page 17: Selenium, testNG , Selenium Grid & Best Practices

#9. Ne pas se limiter à l'UI

Page 18: Selenium, testNG , Selenium Grid & Best Practices

#10. Industrialiser les tests

Page 19: Selenium, testNG , Selenium Grid & Best Practices

#11. Penser incrémental

Page 20: Selenium, testNG , Selenium Grid & Best Practices

#12. Une histoire de confiance

Page 21: Selenium, testNG , Selenium Grid & Best Practices

Merci@MathildeLemee

Pour aller plus loin :

http://www.fluentlenium.org