skip to Main Content

I am developing automated tests for one of our GUI based app using Pytest framework. I’ve created a docker image with series of tests for a particular GUI functionality and it is stored in AWS ECR as an image.I’ve also setup an AWS Batch computing env with a cron schedule to trigger the tests (image) at a particlar time/day which is working fine.

I’ve couple of questions regarding this:
Is there a way to trigger the tests from AWS without using the cron schedule? This is to enable business users with necessary AWS rights so that they can run the tests independently without waiting for the cron to run the tests.

Secondly, what is the best way to run automation tests for more than one GUI functionalities (pages)? There are about 15 different types of pages within the app that needs to be automated for testing. One way is to create 15 different images to test them and store them in ECR. But it sounds little inefficient way of doing things. Is there a better alternative like creating just one image for these 15 different pages. If so, how can I selectively run tests for a particular GUI page.

Thank you.

2

Answers


  1. The answer to your first question is no, you can’t manually trigger a CRON scheduled batch job. If you wanted user’s to run the tests you would need to switch to event driven jobs and have the user’s create events that trigger the job – drop a file into S3, send a message to an SQS queue etc. You could also wrap your batch job in a State Machine, which is then trivial to manually execute

    Login or Signup to reply.
  2. I’ve couple of questions regarding this: Is there a way to trigger the
    tests from AWS without using the cron schedule? This is to enable
    business users with necessary AWS rights so that they can run the
    tests independently without waiting for the cron to run the tests.

    I think you are asking if a user can run this AWS Batch Job Definition manually in addition to the cron scheduled process?

    If so the answer is yes, either with access to the Batch management console or using the CLI (or if you have some other GUI application with the SDK). They would need an IAM user with a role permissions for Batch, ECS, and other AWS resources.

    Secondly, what is the best way to run automation tests for more than one GUI functionalities (pages)? There are about 15 different types of pages within the app that needs to be automated for testing. One way is to create 15 different images to test them and store them in ECR. But it sounds little inefficient way of doing things. Is there a better alternative like creating just one image for these 15 different pages. If so, how can I selectively run tests for a particular GUI page.

    I would look into continuous integration testing methods. This is the problem those systems are designed to solve.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search