Loading…
NTD has ended
Back To Schedule
Wednesday, June 3 • 09:00 - 17:00
Complex Test Scenarios with Selenium, Java and Helper Libraries

Sign up or log in to save this to your schedule, view media, leave feedback and see who's attending!

Feedback form is now closed.
Learning the Selenium framework for testing a website is just the beginning. Usually Selenium tests require more than just clicking on a button or reading data from a field. They involve generating the test data required and processing data read from the webpages. Writing the most efficient web tests, apart from Selenium, also require some Java concepts, for easily gathering data from the pages tests interact with. Generating test data to feed into the system through the website can also be done with either Java or some helping methods from Apache Commons. In this tutorial I will show examples that anyone could encounter in their daily work, and provide a solution to creating the most efficient tests. This can be done using some Java concepts like: Objects, Enums, Lists or HashMaps.

Three of the test scenarios I will tackle during this tutorial include:
- Fill in a registration form (with Selenium) with randomly generated test data (by Java and Apache Commons). Discuss what types of data are required for different fields (int, String, dates), how to randomly select values from dropdowns, and how to generate data based on already selected values.
- Read the information from a webpage (with Selenium), representing the data you submitted when filling in the registration form. Read them into corresponding data types. Check that this data is correct (using Java concepts).
- Interact with a video embedded in your page (with Selenium).

Key Takeaways:
  • Real situations which testers encounter. 
  • How to generate the needed data in the best way possible, in order to feed into the system via Selenium. 
  • How to gather all the required data from the websites, in order for it to have meaning and serve the testing purpose.
  • How to use different Java concepts to work with the websites (either for reading data from the sites or creating data to send to the backend from the sites).
  • How to be most efficient in writing Selenium tests in larger and more complex scenarios, in order to have nice and clean tests.
  • How to organize the code + design considerations.

Speakers
avatar for Corina-Adina Pip

Corina-Adina Pip

QA & Automation Lead, Splend
Corina is a Test & Automation Leading Expert, with focus on testing by means of Java, Selenium, TestNG, Spring, Maven, and other cool frameworks and tools. Previous endeavours from her 10+ years testing career include working on navigation devices and in the online gaming industry... Read More →


Wednesday June 3, 2020 09:00 - 17:00 EEST
D-Saal