Jump to content


Variables in Silverlight response (MSBin1)


  • Please log in to reply
6 replies to this topic

#1 Guest_rafalmarek_*

Guest_rafalmarek_*
  • Guests

Posted 28 June 2012 - 03:13 PM

Hi,
I am evaluating WAPT as tool to performance tests of Silverlight application and I have a question touching variables.

During recording WAPT correctly save responses (which is in MSBin1 format). I try to create variable from response to use it in next request.
But $Search nor $XPath do not finding variable. Is there a way to get variable from server response?

Thanks.

Attached Files



#2 Sergei Leonov

Sergei Leonov

    Advanced Member

  • Administrators
  • PipPipPip
  • 662 posts

Posted 30 June 2012 - 09:35 AM

$Search doesn't work for Silverlight. You should use $XPath:

$XPath(/SaveProjectResponse/SaveProjectResult,1)
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 Guest_rafalmarek_*

Guest_rafalmarek_*
  • Guests

Posted 04 July 2012 - 04:15 PM

You should use $XPath:

$XPath(/SaveProjectResponse/SaveProjectResult,1)

Thank you,

Unfortunately the $XPath also do not work. Test button in Edit function window return nothing (no exception, no value), and during play test no value is assign to variable.

#4 Sergei Leonov

Sergei Leonov

    Advanced Member

  • Administrators
  • PipPipPip
  • 662 posts

Posted 05 July 2012 - 10:26 AM

Thank you,

Unfortunately the $XPath also do not work. Test button in Edit function window return nothing (no exception, no value), and during play test no value is assign to variable.


Could you give me your profile?
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

#5 Guest_rafalmarek_*

Guest_rafalmarek_*
  • Guests

Posted 05 July 2012 - 02:37 PM

Could you give me your profile?


I've send profile to support@loadtestingtool.com

#6 Sergei Leonov

Sergei Leonov

    Advanced Member

  • Administrators
  • PipPipPip
  • 662 posts

Posted 06 July 2012 - 05:28 AM

You need to use WAPTNS namespace for default namespace. Your XPath should look like:

$XPath(/WAPTNS:SaveProjectResponse/WAPTNS:SaveProjectResult,1)
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

#7 Guest_rafalmarek_*

Guest_rafalmarek_*
  • Guests

Posted 07 July 2012 - 07:08 AM

You need to use WAPTNS namespace for default namespace. Your XPath should look like:

$XPath(/WAPTNS:SaveProjectResponse/WAPTNS:SaveProjectResult,1)


Thank you. It's work.
Best regards.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users