Hi! I have recently finished training in Java with Selenium for QA automation. I need help in practicing a project where I can use Java concepts along with Selenium. Is there anyone who can be a mentor/tutor to guide me with coding and practicing selenium project?
You can also first setup a project on your own, complete it as much as you want. Then have it code reviewed by someone.
hello,
please check some guided projects at coursera.org like this below:
https://www.coursera.org/projects/create-automation-script-using-selenium-java
check others at coursera too.
I’m not the person to best teach much about Java as I haven’t seen it in anger in about 10 years, but if you’re looking for places to get a practice going the MoT has a list of websites to practice on:
Scroll down to “Automation Testing” - you’ll find pages set up for you to experiment with.
When you’ve chosen a simple-looking website (try to avoid highly interactive websites at first, it’s easier to stick to basic HTML ideas) then I’d probably find something very simple that you want to achieve. For example, you may try to see if you can detect something on the screen, like the presence of text. Make sure your program reports that text that is on the page does exist, and also that text that is not on the page doesn’t exist. Then you might try to get it to push a button that’s on the screen. You’ll gain confidence with the practical use of your code, not just the theory behind it, and also with your practical problem-solving.
Down the line you can think of a fact you’d like to check about the software. Think of what you want to check, and write the series of commands that will tell you if that fact is true or not. Then look at the fact you wanted to check, and the code you wrote, and notice the difference between them - what did your code not do? Would you need to write more code to check more things, or would that not be worth the effort and cost to store/update/maintain in a larger project? A typical example is a valid login - can a user use their username and password to log into the system? You’d have to think of the steps required, and what you’d want to observe. Login manually yourself, and look for fields you need to fill, buttons you need to press, and a heuristic way to check that it happened (such as the text “Welcome, Mr User!” or something like that on the screen). Then try to replicate that with code.
That will get you started, I feel. If I’m explaining things that are too simple I can go further, or answer any questions you have.
In summary:
- Pick a simple website
- Try to get your code to detect the presence of text on the website, and output it somewhere like the console. Make sure it can also report missing text, by changing the text it’s looking for for text that’s not on the website.
- Try other ways to interact, like pushing buttons or filling fields
- Try to think of something you want to check about the software, like a valid login for example
- Write code to check for that thing you want to check
- Compare what you wanted to find out to what the code actually is doing
- Build more checks
Note that point 2 is probably going to cause the most problems. You need to get Java/Selenium set up, get a connection to the browser, and so on, which are problems you only usually have to solve once.
Best of luck!
I just tried out some prompts with claude and this one might help you:
“I did a training in Java with Selenium for QA automation. Can you create a project for me (including free ressources and real web projects) so that I can use my learnings in practice? Please provide the exercise description and requirements, but don’t include the solution code. The exercise should be challenging enough for a beginner to practice with, but not too complex.”
It gives out this: Project: E-commerce Website Test Automation
Target Website: https://demo.opencart.com/ (Free demo e-commerce site)
and along that test cases which you can build. Hope that helps you and please reach out if I can help with other prompts or you have questions to this one