Support & information center


Instructs the probe to run a specific function when the test completes, either prematurely or properly.

rtcCallWhenDone() can be used by applications to try to gracefully close a session or to collect and share data from the session as needed. This script command receives a function as an input. This function is called when the test finishes running.


runFunctfunction(boolean)Function to be called when the script finishes running.


  • A boolean value indicating if the test completed prematurely is passed to the runFunc function as its only variable


client.rtcCallWhenDone(function(completedPrematurely) { client .rtcSetAdditionalInfo("stopped prematurely " + failed) .rtcScreenshot("stopped prematurely " + failed); });
Code language: JavaScript (javascript)

Was this article helpful?

Related Articles