Windows: ChromeDriver = 102.0.5005.61 JavaJDK: 1.8.0_202
Use: mvn -Dtest=registerRunner test
User
To register in the page
I can use the page
I go to the registration page
I fill the form with valid information
I should be registered and can access to the page
Doing this test code make me feel like I'm a real developer, because I really need to know whats going on every test and why in the majority of cases the code not works and why the Actor cant click in something or write..., so in general this is a very nice experience for my, when I see the test passed I jumped from happiness.
When I see the quantity of parameters and how the registration proccess works I really thinks is more legible and easy to understand divide the registration proccess in 4 steps, because in this way I can divide the parameters in 4 groups, and every test step is more clear and easy to understand this helps me to know when the code failed., and do the Tasks more clean. So now imagine if I do every test in one line, this is so BAD because when you need to pass the arguments in one line for the registration task, the parameters you need to read is like datatable.get(0), datatable.get(1), so expensive to do, so for that i realized the transformation in asMaps and simple to the element that i need by the Key