The information in this topic may be out of date. The current SDK reference guide has moved here.

abort method

Class: EyesPlatform: ImagesLanguage: JavaScript SDK:

When a test is aborted, and it may be that not all of its checkpoints have excuted, call this method instead of close methods so that it will have an Aborted status in the Eyes Test Manager.


let result = await eyes.abort();


This method does not take any parameters.

Return value

Type: Promise<?TestResults>


If you call this method on a test that was opened but not closed, then then test will have an aborted status in the Eyes Test Manager. If you call it after the test has been succesfully closed, then the call is ignored.