Is an event fired when the backend is done processing?

I am a software tester tasked with created automated test cases for our application in Novulo. I am using Playwright to do so, and one stumbling point that I have come across is that I currently need to build in hard-coded wait statements because processes on the back end can cause changes to the front end as a response to filling in a field or clicking a button.

Playwright offers the ability to wait for an event or load state (DomContentLoaded for example) to be fired, which would create a more stable and quicker testcase.

Does Novulo emit an event or state change when the back end is done processing?

Hello G.Hammil,
I am not that familiar with Playwright, but have dabbled in Selenium. When it comes to most websites that use Novulo’s backend, usually whenever an action (e.g. a process) is active, whatever you would want to press is mostly obscured by for example a loading bar / spinner.

Sleeps / waits are always a possibility, but I agree, its not the best way to do so.

Depending on if you have a ‘timer’ set, so within set.amount.of.time, attempt to click a button, one might opt for things such as :

‘is element visible’
‘is element enabled’
‘is element clickable’

or use Javascript to assess whether or not something is still actively doing something, although I am not sure if Playwright offers that.

Another way might be using the Playwright CRX chrome extension, that offers recording of the user’s actions to turn it into a script and compare with the script you are making.

Hope this helps a bit, if not, can you perhaps give a bit more details on what situation you’re facing?

Kind regards,

2 Likes