1

I recently came across "UI Testing at Scale with AWS Lambda" and I find this quite interesting. If I have understood correctly, they are running test suites in headless Chrome within a Lambda function.

I wonder if it is generally possible to spawn a GUI via AWS Lambda to run any form of GUI-based tests there (i.e. for GUI technologies without a headless mode). All I have found so far is this GitHub project which enables Xvfb in AWS Lambda.

Does anyone know and/or has experience with this?

  • What do you mean when you say GUI based tests? Headless tests are still interacting with the app, just not rendering the screens out anywhere. – ernie Jan 17 '18 at 21:33
  • 1
    @ernie for some GUI technologies (e.g. Java Swing) there's no headless mode out of the box. If AWS Lambda supports Xvfb or allows using the native windowing systems of the given OS, it would be possible to also run GUI tests for these technologies. – beatngu13 Jan 17 '18 at 21:57
  • Ah, makes sense . . . fortunately not in the space where I need to test Swing or Flash or anything crazy. – ernie Jan 17 '18 at 22:20
  • @ernie lucky you. ;) – beatngu13 Jan 17 '18 at 22:24
-1

I don't have any experience with AWS Lambdas, but I think they trigger tests that are setup in EC2 instance. If You'll use Xvfb or containers like docker You can achieve nice results. I've done something similar, but tests on EC2 instance was triggered by Jenkins builds via ssh not by lambda. And I must say that worked like charm.

  • They're not triggering tests that are setup in EC2 - they're actually running everything in Lambda processes. It's a pretty creative use of Lambdas, – ernie Jan 17 '18 at 21:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.