Record (and run) at a specific location in a test

For me, the most time-consuming part after (and during) recording a test is the need to run the entire test from the beginning to the end (or until a certain point) if I need to change or update something.

More exactly, for our longer E2E tests from start to finish they can take up to 5+ minutes, and if I need to record something at the last few groups, I need to wait minutes in a row just to reach that part in order to click or update some new elements.

In the roadmap, something that would help with the above are the following two considered features:

I wish that, during recording, I could "select" specific locations inside the test where the step would appear for the action I do in the recorded window. This way I could skip/ignore certain groups/components of the tests which I know are passing.

Maybe something like a "Record at location" or "Change record location" button in the recording options modal, which, when pressed, would allow me to select where my action will be recorded in the test in the form of a step.

If I was able to do something similar to that, I would be at least 50% faster if not more, while expanding our testsuite or even keeping it updated when needed. As mentioned, a big chunk of my time consists in waiting for a test to reach a certain point, so I can continue adding more steps.

I think the best parallel I can do here is the "Record at cursor" option from Playwright:

  • While this option is activated (and clearly marked it's on) then any action done on the webpage will be recorded

  • I can cancel/stop/pause the option, without closing the recording window, so that I can freely navigate the webpage elements without actually recording steps.

  • While the option is activated, I can also click any line number in the code editor where I want the step to be recorded

  • The steps are recorded in the same manner as BugBug, from top to bottom, wherever the "cursor" is at the code line at that moment

A video that captures the above behavior to get a better idea:

https://streamable.com/w18bz1

In my opinion, this would be the most important feature for me while using BugBug, probably above any other improvements I can think of. 😁

Please authenticate to join the conversation.

Upvoters
Status

Completed

Board

πŸ’‘ Feature Request

Tags

High Priority

Date

Over 2 years ago

Author

Marius COJOCARIU

Subscribe to post

Get notified by email when there are changes.