Getting an Error in ATF

KS86
Tera Contributor

Getting this error "This step failed because the client error 'GlideAjax.getXMLWait is no longer supported' was detected on the page being tested. See failing Test Logs. To ignore these errors in the next test run, use 'Add all client errors to warning/ignored list' links." 

 

What is the issue?  How to get rid of this? Currently test is not passing.  

 

Note - I am able submit Record Producer manually, no error is appearing.

 

KS86_0-1781095857234.png

 

4 REPLIES 4

Shaqeel
Mega Sage

Hi @KS86 

 

Open the failed step and click on "Add all error to ignored list"
& 

In your test uncheck "Fail on server error"

Shaqeel_0-1781171147771.png

 

PoonkodiS
Giga Sage

@KS86 

Your code uses GlideAjax.getXMLWait(), which is a synchronous function that freezes the browser

Find the Client Script running on that Record Producer and change getXMLWait() to an asynchronous getXML() call with a callback function:

// Change this:
ga.getXMLWait();
var ans = ga.getAnswer();

// To this:
ga.getXML(callbackFunction);

function callbackFunction(response) {
var ans = response.responseXML.documentElement.getAttribute("answer");
}

Try this approach