UPLOAD

    Ayşe Demir

    İstanbul, Türkiye

    3.3K

    Selenium Automation Testing

    Published: December 12, 2019

    Selenium Browser Automation, as defined on its site, is a tool that automates the testing of web applications. A system that provides library support to programming languages with a more practical explanation and provides the infrastructure to process the functions executed with these libraries, to monitor the tests performed and to report the results.

    Comments

    Selenium Automation Testing

    • 1.  Selenium Automation Testing Selenium Automation Testing
    • 2. Selenium Web Driver Selenium Web Driver •Selenium Browser Automation, as defined on its site, is a tool that automates the testing of web applications. •A system that provides library support to programming languages with a more practical explanation and provides the infrastructure to process the functions executed with these libraries, to monitor the tests performed and to report the results. •Selenium automates browsers. What you do with that power is entirely up to you. (Selenium automates the scanners. It's entirely up to you what you're going to do with this power.) •Open source and free of charge. •OpenQA. •It has its own optional IDE. (Selenium IDE)
    • 3. Areas of Usage Areas of Usage •Through the interface with manual programs. •Through the programming language for the .NET Framework.
    • 4. Manual Operation Manual Operation •"Selenium IDE" and "Sauce Lab Manual Test» with applications such as test scenarios, will be recorded while using the program and the same scenarios can be run again. •act as a normal user operations accordingly and making records. • used to write functional tests. •It works as a Firefox plug-in. • A multi-language support is available (Java, .NET, Python, Ruby, PHP, Perl) • selenium thanks to the open source on multiple platforms (Windows, Linux, IOS) has been working without any problems. • With support multiple language support and a platform are more preferred than the other test vehicle. (UFT, QTP)
    • 5. Manual Operation Manual Operation https://docs.seleniumhq.org/download/ Selenium IDE can download from the address. After opening the Selenium IDE, you will see a screen like this.
    • 6. Manual Operation Manual Operation • Menus: Create a new test portion of the menu, and save the tests you want to test, you can use them in the language you want to export. You can use all of these features in the tests you will do. • Table: Step by step is the section where we keep the transaction. • Source: HTML code for the values in the Table. • Play: This is the section that runs from entering the same test again whether the casein from the recorded automated steps. • Test Case: This is the section that stores renaming of the tests.
    • 7. Manual Operation Manual Operation • Command: This is the place where the application is executed by filling the appropriate fields to the test cases. • Target: This is the area where the desired area to be tested is indicated on the screen. • Value: This is the field where the value is entered for the desired test. • Runs & Failures: This section lists how many tests are successful and how many fail. • Record: Button used for recording.
    • 8. Manual Operation Manual Operation • Base URL: This is the section on which page the tests will be performed. • Log: This section contains the logs of the step-by-step tests. This is the part where error messages are displayed about the tests performed by running with Play. In this way, you can debug some kind of tests. • Reference: This is the section where the codes used in the Command section are documented. In this way, you can do your transactions quickly by providing you easy while documenting your tests.
    • 9. Use With Languages In The Program Use With Languages In The Program •The Webdriver framework has libraries in several languages, integrating these libraries into your project and optimizing your tests with local or remote control servers simultaneously and in multiple environments • Selenium libraries for major languages; • C# Ø NUnit • Java Ø Junit,TestNG • Python ØUnittest • Php ØPhpUnit • Ruby ØRspec ØTest::Unit •JavaScript ØWebdriver.js .
    • 10. Main Methods Main Methods •var driver = new ChromeDriver(); •driver.Navigate().GoToUrl("SiteAdı"); •driver.FindElement(By.XPath("htmlPath")); •driver.FindElements(By.XPath("htmlPath")); •driver.FindElement(By.XPath("htmlPath")).SendKeys("stri ngValue"); •driver.FindElement(By.XPath("htmlPath")).Click();
    • 11. Schedule and Scheme Schedule and Scheme Developed with Windows Form Application in .NET environment. • There are 2 buttons, START and FINISH. • Selenium captcha does not solve! • Buttons and quotas are symbolic.
    • 12. Schedule and Scheme Schedule and Scheme
    • 13. Schedule and Scheme Schedule and Scheme