Allure Framework

  • Published on
    28-Nov-2014

  • View
    1.421

  • Download
    28

Embed Size (px)

DESCRIPTION

 

Transcript

<ul><li> 1. Allure Framework </li> <li> 2. Artem Eroshenko eroshenkoam@ </li> <li> 3. </li> <li> 4. </li> <li> 5. </li> <li> 6. </li> <li> 7. API </li> <li> 8. Web- </li> <li> 9. </li> <li> 10. </li> <li> 11. </li> <li> 12. </li> <li> 13. - /company/yandex/blog/200364/ </li> <li> 14. </li> <li> 15. Allure Framework </li> <li> 16. Allure Framework </li> <li> 17. Allure Framework </li> <li> 18. Allure Framework </li> <li> 19. Allure Framework xUnit </li> <li> 20. xUnit </li> <li> 21. xUnit TestSuite Class </li> <li> 22. xUnit TestSuite Class TestCase Method </li> <li> 23. xUnit () </li> <li> 24. HTML IMAGE JSON XML TXT OTHER </li> <li> 25. () xUnit </li> <li> 26. </li> <li> 27. </li> <li> 28. </li> <li> 29. xUnit </li> <li> 30. </li> <li> 31. Allure Framework = + xUnit </li> <li> 32. Allure </li> <li> 33. Allure Model Allure Adaptor Allure Report Allure </li> <li> 34. Allure Model Test Suite .xml xUnit </li> <li> 35. ! ! xUnit Model </li> <li> 36. Allure Model Test Suite .xml start/stop status test info xUnit severity </li> <li> 37. ! Test Suite! ! ! Test Case! ! ! Allure Model </li> <li> 38. Allure Model steps attachments Test Suite .xml start/stop status severity test info xUnit </li> <li> 39. ! Test Case! ! ! ! ! ! ! Allure Model </li> <li> 40. ! ! ! ! ! ! ! ! Allure Model </li> <li> 41. ! ! ! ! ! ! ! ! Allure Model </li> <li> 42. ! ! ! ! ! ! Allure Model </li> <li> 43. Allure Framework = + xUnit </li> <li> 44. Allure Adaptor jUnit pyUnit Karma Test Suite .xml </li> <li> 45. Allure Adaptor jUnit pyUnit Karma jUnit Adaptor Test Suite .xml </li> <li> 46. Allure Adaptor jUnit pyUnit Karma jUnit Adaptor pyUnit Adaptor Test Suite .xml </li> <li> 47. Allure Adaptor jUnit pyUnit Karma jUnit Adaptor pyUnit Adaptor Karma Adaptor Test Suite .xml </li> <li> 48. Allure Report Test Suite .xml Test Suite .xml Test Suite .xml </li> <li> 49. Allure Report Test Suite .xml Test Suite .xml Test Suite .xml Report Data Generator Test Suite .json Test Suite .json Test Suite .json Run Status .json </li> <li> 50. Allure Report Angular JS + Test Suite .json Test Suite .json Test Suite .json Run Status .json Report Face </li> <li> 51. Allure jUnit jUnit Adaptor Test Suite .xml Data GEN Report </li> <li> 52. Allure Model Allure Adaptor Allure Report Allure </li> <li> 53. Allure In Action </li> <li> 54. Allure Lifecycle Allure TestNG Allure jUnit Allure Java Adaptors </li> <li> 55. Allure Lifecycle Allure.LIFECYCLE.fire(TestSuiteStarted);! Allure.LIFECYCLE.fire(TestCaseStarted);! Allure.LIFECYCLE.fire(StepStarted);! Allure.LIFECYCLE.fire(MakeAttach);! Allure.LIFECYCLE.fire(StepStarted);! Allure.LIFECYCLE.fire(StepFinished);! Allure.LIFECYCLE.fire(StepFinished);! Allure.LIFECYCLE.fire(TestCaseFinished);! Allure.LIFECYCLE.fire(TestSuiteFinished); </li> <li> 56. Allure jUnit public class AllureRunListener ! extends RunListener{! ! @Override! public void testStarted () {! TestSuiteStartedEvent suiteStarted =! new TestSuiteStartedEvent();! getLifecycle().fire(suiteStarted);! }! ! } RunListener </li> <li> 57. public class AllureTestListener ! implements ITestListener{! ! @Override! public void onTestStart () {! TestSuiteStartedEvent suiteStarted =! new TestSuiteStartedEvent();! getLifecycle().fire(suiteStarted);! }! ! } Allure testNG ITestListener </li> <li> 58. Allure jUnit Example </li> <li> 59. xUnit public void SearchTest {! @Test! public void searchResultsTest() {! ! }! } </li> <li> 60. @Step! public void openMainPage () {! driver.get(http://yandex.ru);! }! ! @Step! public void searchBy (String key) {! driver.findElement(id(text))! .type(key);! driver.findElement(id(srch)).click();! } </li> <li> 61. @Attach(type=AttachmentType.PNG)! public File makeScreenshot () {! driver.getScreenshotAs(OutputType.File)! }! @Step! public void checkResultHas(String text) {! // ! // , ! ! makeScreenShot(); ! } </li> <li> 62. public void SearchTest {! @Test! public void searchResultsTest() {! openMainPage();! searchBy(Yandex);! checkResultsHas(Yandex);! }! } </li> <li> 63. http://bit.ly/allure-reports </li> <li> 64. Allure Python Adaptors Allure Lifecycle Allure pyTest </li> <li> 65. Allure Report Builder Allure Maven Plugin Allure Jenkins Plugin </li> <li> 66. </li> <li> 67. ? https://github.com/allure-framework eroshenkoam@ </li> </ul>