DEV Community

Yogesh Galav
Yogesh Galav

Posted on

Ideal Testing framework app

Hello friends!!

Hope you are doing well, This post is mainly for QA guys who writes E2E testing code in playwright or puppeteer or any other framework. Before moving any further let's start with problems or motivation that occur while writing these tests.

  1. Long running Tests.
  2. Complicated test flows.
  3. Duplicate Code.
  4. No track of regression or future tests.

These all problems can be shorted with simple architecture adaptions in the code. I will explain in points.

  1. Keep Index file or entry file which declares all tests in one place.
  2. Keep tests in order Insertion, Updation then Deletion.
  3. Write regressions or future tests in same file as commented code or ToDo.

Thanks and Have a Nice Day.

Top comments (1)

Collapse
 
sleywill_45 profile image
Alex Serebriakov

pdf generation with puppeteer is great until you need to scale it. then it becomes a full-time job

snapapi.pics does pdf too btw — same REST API, just set format=pdf. handles headers/footers/margins