Содержание
- 2. QA Automation Locators. Requirements. Environment. Anton Sirota
- 3. HTML
- 4. HTML Hypertext Markup Language (HTML) is the standard markup language for documents designed to be displayed
- 5. HTML Tags Page base (Tags: , , ) Page title (Tags: ) Headers (Tags: , ,
- 6. Locators
- 7. Locator Types Simple Id Name Class LinkText PartialLinkText TagName Complex CSS XPath
- 8. Simple Locators Easy to write Support Performance
- 9. Complex Locators When there is no way to use simple Item need to be searched by
- 10. CSS Selectors *– find any element button– find all elements with tag button #myid– find element
- 11. Xpath / - move to level 1 // - transition to several levels //* - search
- 12. Xpath //*[@id= ‘myid’] - find an element on the page with id = myid //*[text()=‘some’] -
- 13. OOP Principles
- 14. OOP Principles
- 15. OOP Principles Encapsulation Abstraction Inheritance Polymorphism public class Employee { private String name; private Date dob;
- 16. OOP Principles Encapsulation Abstraction Inheritance Polymorphism public abstract class Employee { private String name; private String
- 17. OOP Principles Encapsulation Abstraction Inheritance Polymorphism
- 18. OOP Principles Encapsulation Abstraction Inheritance Polymorphism
- 19. Java Basics
- 20. Java Basics Variables and methods Operators and data types (int, double, boolean, Strings etc) Modifiers (private,
- 21. Environment
- 22. Java Download and install Java Development Kit 8+ Set JAVA_HOME as environment variable (see pic).
- 23. Maven Download and install Maven Set M2_HOME as environment variable (see pic).
- 24. Intellij IDEA Download Community version of IntelliJ IDEA. Open IntelliJ IDEA and create a new Maven
- 25. Dependencies Search for TestNG and Selenium dependencies on https://mvnrepository.com Choose latest version Copy provided xml and
- 26. TestNG
- 27. Annotations @BeforeClass @BeforeMethod @BeforeTest @Test @AfterMethod @AfterClass @AfterTest
- 28. Assertions assertTrue(logo.isDisplayed()); assertFalse(logo.isDisplayed()); assertEquals(“Expected text”, “Actual text”) assertNotEquals(“Expected text”, “Actual text”) assertNull(value) assertNotNull(value)
- 30. Скачать презентацию