Experience report for the record and export feature in the TestProject.IO

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.

No alt text provided for this image

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

No alt text provided for this image
  1. 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
  2. The notes on the beginning of the test before the class file is detailed enough to track the latest changes
  3. 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
  4. The locators used is XPath and all the XPath's are relative
  5. 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.




Kesav K

Principal - Software Engineer

5 年

Good write up

回复
Prasannavenkadesh Sankar

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

回复

要查看或添加评论,请登录

Ashwin Kumar Shanmugam的更多文章

社区洞察

其他会员也浏览了