Experience report for the record and export feature in the TestProject.IO
Ashwin Kumar Shanmugam
QA Architect who believes testing is a way of life rather being a 9-5 job and developers are the best friends of testers
I tried out the TestProject to record a test and then export the test into a java file. II found this feature very convenient to do quick automation and also having the feature to edit the exported code and pushing the code back to run the tests is the icing on the cake.
How to do this is given in the link below
https://blog.testproject.io/2019/04/28/create-recorded-tests-with-testproject/
Once the test is created, we would need to click on the three dots against the test and select the option to generate the code. The browser options included all the major options covering IE, edge, chrome, safari and firefox. The language options are java & c#. We can also customise the package name of our tests.
After I generated the code and exported it( java version), I was able to view it on my ide of choice which is Eclipse in my case. A screenshot of my code is given below.My observations on the generated code
- The amount of comments for each line of code is insane. It follows a great coding standard and any new member of the team when viewing the code will be able to follow it without any confusions. The readability of the code is great because of this feature
- The notes on the beginning of the test before the class file is detailed enough to track the latest changes
- I really loved the way for each line of code a screenshot is taken for the reports with the screenshot title mimicking the user actions. This will enable the testers to minimise the time taken for searching for the screenshots
- The locators used is XPath and all the XPath's are relative
- The variable declarations are also very much appropriate
This feature, in addition, will be a boom for the manual testers moving into automation as it will reduce their learning curve and help them make the transition into automation a great journey.
Overall, I am sure this is a great feature in the TestProject and will have wide acceptance among all the testers.
Principal - Software Engineer
5 年Good write up
Technical Solution Planning - Senior Manager - Solution Architecting - Insurance - Accenture
5 年Good Article. The way of explanation shows the reality instead of hype. Great Ashwin Kumar Shanmugam. Congratulations