Jump to content


Response validation doesn't work for silverlight


  • Please log in to reply
3 replies to this topic

#1 Guest_Rist_*

Guest_Rist_*
  • Guests

Posted 04 September 2012 - 11:40 AM

Hello,

I am trying to test a silverlight application that uses soap+msbin1 requests to communicate with the server.

When I try to use response validation for a message with Content-Type "application/soap+msbin1", it always fails, giving me "Response message validation error" even though recieved message contains the string I'm searching for. I tried both validation for each request and general profile settings. Is it because the validation rule applies to a message before it's decoded into understandable XML form? Is there any other way I can check if response message contains no errors?

Attached Files



#2 Sergei Leonov

Sergei Leonov

    Advanced Member

  • Administrators
  • PipPipPip
  • 661 posts

Posted 05 September 2012 - 07:17 AM

The validation rules are applied to text responses only. For Silverlight you can use $XPath function + If Then Else operator + Stop session operator.
Sergei Leonov
WAPT Project Manager
SoftLogica LLC

Office: +7-383-335-6692
Toll-free: 1-888-364-6797 (for US only)
Time zone GMT +6, EST +11
E-mail: support@loadtestingtool.com
http://www.loadtestingtool.com

#3 NikiMouse

NikiMouse

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 08 December 2016 - 09:44 PM

Hi Sergei,

I have the same situation with the binary http protocol "hessian". There is no structured data I could check.

Normally I would do the validation by using a byte sequence. But it doesn't work neither with a single character nor with a byte code (both are available in the response data).

 

In the case of an functional error I get an http 200 status code and the substring "exception" within the response data. That's why the check of http return code doesn't help.

 

Is there a way to check the repsonse data?

Thank you,

Niko



#4 Sergei Leonov

Sergei Leonov

    Advanced Member

  • Administrators
  • PipPipPip
  • 661 posts

Posted 09 December 2016 - 07:06 AM

For a better understanding of your needs could you give me or send to support your profile and log file?


Sergei Leonov
WAPT Project Manager
SoftLogica LLC

Office: +7-383-335-6692
Toll-free: 1-888-364-6797 (for US only)
Time zone GMT +6, EST +11
E-mail: support@loadtestingtool.com
http://www.loadtestingtool.com




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users