RTiwari
14 years agoOccasional Contributor
Null value from Data Source
I have following query:
I have to pass null value from grid for a perticular field.So i leave blank in the grid for this field.But when i run the testcase in a testsuite, its take as blank value instead of null value and response for the request give soap fault for balnk value.
I also tried event handler:
Go into the "Events" tab in the main Project window and add a new handler for RequestFilter.filterRequest and leave the "Target" field empty for this.
Then enter the following script:
context.requestContent = context.requestContent.replace('<xsd:GPSElevation/>', '<xsd:GPSElevation xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>')
But it is not replacing the string.
Please help......i have to solve this issue urgently.
Thanks.
I have to pass null value from grid for a perticular field.So i leave blank in the grid for this field.But when i run the testcase in a testsuite, its take as blank value instead of null value and response for the request give soap fault for balnk value.
I also tried event handler:
Go into the "Events" tab in the main Project window and add a new handler for RequestFilter.filterRequest and leave the "Target" field empty for this.
Then enter the following script:
context.requestContent = context.requestContent.replace('<xsd:GPSElevation/>', '<xsd:GPSElevation xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>')
But it is not replacing the string.
Please help......i have to solve this issue urgently.
Thanks.