Low code automation with TestProject
TestProject

Low code automation with TestProject

What is Low Code Automation Testing?

Low code automation testing is nothing but development of program automatically without any prior knowledge to code. In other words, we can refer to it as "Automatic Programming".

Why Low Code Automation Testing?

Who doesn't like low code for test automation project? Every one loves it!!! Low code automation gives you more time to focus on your functional test case than focusing time on setting up test case.

In traditional method, you need to focus more on inspecting code, finding Xpaths or unique selectors and setting up test case every time. Low code automation will build test cases more faster even without knowing code behind it.

TestProject facilitates low code automation testing. I will be briefing smart record and play feature of TestProject along with cool export option to make some changes in code as per requirements.

Setting up TestProject

There are simple three steps to setup TestProject

  1. Sign up to TestProject. Nothing to worry. It's absolutely Free.
  2. Login to TestProject and Download an Agent
  3. Start and register this downloaded agent

Recording with TestProject

Imagine a simple scenario where -

  1. User navigates to any E-commerce site
  2. Search for a specific smartphone
  3. Open smartphone details screen

In my case I will be using Amazon to search 'iPhone 11 Pro Max' and view product specifications.

Recording needs a test case be added in TestProject. We can add new test as -

  • Click on 'New Test' on top header
  • Select test type: Mobile, Web or Code
  • Fill out Test Case Name, Description & Add web application
  • Click on recording button to start recording test

It will now open browser with desired web app (Amazon in my case"). Now you can perform actions to record test case.

I will be clicking on search box, type 'iPhone 11 Pro Max' and click on product details.

Now close browser and check for test in your project on TestProject. You can see recorded test as

Recorded steps with test project

Now I want to export this project - can I do that? Yes.

Navigate to test case in project, select more details and click on 'Generated Code'

No alt text provided for this image

You will get zip file of complete project which you can unzip import to your favourite IDE. I use IntelliJ. So I will be importing this project to my IDE.

You'll need to download SDK for exported project. You can download same from Integrations --> Java or C#

No alt text provided for this image

Download this SDK and include in project. I have created 'lib' folder and included this file. Now change build.gradle file to provide path to your SDK and you're done. Now you can run this project and see your test execution happening.

No alt text provided for this image

You'll see three files mainly - one Runner file, one utils file and one for your test case. All of your test steps can found in this file with very detailed manner.

No alt text provided for this image

Now I want to do some changes to my test case in IDE. I want to open user rating from product details page and open all reviews. I will add same in my java file.

No alt text provided for this image

I have done very basic step but I can think of getting all list of products on search page and sorting it by Price High to Low or alphabetically. We can test whether list is sorted or not.

Reporting

We need to generate a jar for this updated script and upload back to TestProject. To do so, add a new case with code & upload JAR file.

No alt text provided for this image


I have created one job which will run periodically and provide me notification of test results via email.

TestProject has very rich reporting UI and can be integrated with Jenkins, Sauce Labs, Team City etc. I also have integrated same using webhook to start job and send email of test results.

Conclusion

There are many tools in market for record and playback but I found TestProject very useful. Most of tools gives everything in one file.

TestProject provides exported code in a very structured and informative manner. We can just pick any required test case from one project and place to another


Any thoughts?

Please do comment your thoughts or suggestions or questions. I will be happy to help.

Happy Testing!!!

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

Krishna Khavle的更多文章

  • Testing made easy with TestProject

    Testing made easy with TestProject

    I always try to find and learn new tools. So far now, I was not able to find any end-to-end solution for both - manual…

社区洞察

其他会员也浏览了