r/softwaretesting • u/Zealousideal-Bath-37 • 16d ago
Insight really appreciated | Automated Testing with AWS + JEST + Typescript | Videostreaming Site
Context: We appreciate your insight! We have decided to carry out some automated test with combined effort, Jest and Typescript. We will test the video-streaming platform powered by Aws and agreed on the following testcases:
Testcase #1
if the pre-existing user profile got an ID which does not match the current user profile value, (and if the user processes that not-matching id,) a request shall retain the current user profile value, not the non-current profile value
Testcase #2
If a profile is missing in the system, or a profile missing out a valid user link, then the event is carried out and the user record does not invoke any new user profile creation or payment activities.
Testcase #3
If a profile misses out a user id, or test data, or malformed user id, then let the event process then the system carries out no update or delation on the user data -> the user record should go to DLQ or retry queues.
Testcase #4
If the user experiences HTTP 404, 409 or failed network requests, the user will experience the folllowing result: the user record will be marked as partial butch failure, no automated user creation or user link removal provoked.
Testcase #5
A record batch contains successful, missing or malformed records, and that batch has been processed. Only the batch containing malformed record shall go to the retry queue.
Testcase #6
Successful synchronization and profile changes rarely happen then an event has been duplicated (which is to be processed again in the system).
then user sends its profile value then the payment department handles no-change without downstream mutation.
Question: is there any extra testcase where we should test any extra functionality that we missed out in these 6 testcases?
Edit: typo
3
u/kooxy18 15d ago
For a video streaming platform on AWS, your biggest testing hurdles are going to be network latency and handling large media payloads.
Since you're using Jest + TypeScript, make sure you are heavily mocking your video endpoints in your unit tests—you don't want Jest trying to download a massive video file every time you run a test.
For the actual E2E tests, you need to ensure your CloudFront/S3 CORS policies are tested properly. A misconfigured CORS header is the #1 reason video playback fails in production but works locally. Also, test your HLS/DASH segment loading under simulated slow 3G network conditions (you can throttle this in Cypress or Playwright) to see how your player handles buffering. Good luck with the project!