AnsweredAssumed Answered

service response and DB response comparision in java script i am getting exception

Question asked by sunithaprasad on Jan 6, 2016

Hi ,

I converted json to xml  and i am comparing service response and db response by using java script i am getting the below exception

Could you please suggest me .

| Message:     Sourced file: inline evaluation of: ``// This script should return a boolean result indicating the assertion is true o . . . '' : Typed variable declaration : Error in method invocation: Method getElementsByTagName(java.lang.String) not found in class'java.lang.String' : at Line: 35 : in file: inline evaluation of: ``// This script should return a boolean result indicating the assertion is true o . . . '' : xml .getElementsByTagName ( "e" )

----------------------------------------------------------------------------
| Trapped Exception: Sourced file: inline evaluation of: ``// This script should return a boolean result indicating the assertion is true o . . . '' : Typed variable declaration : Error in method invocation: Method getElementsByTagName(java.lang.String) not found in class'java.lang.String' : at Line: 35 : in file: inline evaluation of: ``// This script should return a boolean result indicating the assertion is true o . . . '' : xml .getElementsByTagName ( "e" )

| Trapped Message:   bsh.EvalError: Sourced file: inline evaluation of: ``// This script should return a boolean result indicating the assertion is true o . . . '' : Typed variable declaration : Error in method invocation: Method getElementsByTagName(java.lang.String) not found in class'java.lang.String' : at Line: 35 : in file: inline evaluation of: ``// This script should return a boolean result indicating the assertion is true o . . . '' : xml .getElementsByTagName ( "e" )

----------------------------------------------------------------------------
STACK TRACE
bsh.EvalError: Sourced file: inline evaluation of: ``// This script should return a boolean result indicating the assertion is true o . . . '' : Typed variable declaration : Error in method invocation: Method getElementsByTagName(java.lang.String) not found in class'java.lang.String' : at Line: 35 : in file: inline evaluation of: ``// This script should return a boolean result indicating the assertion is true o . . . '' : xml .getElementsByTagName ( "e" )

Outcomes