WAPT Forum: Variables in Silverlight response (MSBin1) - WAPT Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Variables in Silverlight response (MSBin1)

#1 User is offline   rafalmarek 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 25-June 12

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 File(s)


0

#2 User is offline   Sergei Leonov 

  • Advanced Member
  • PipPipPip
  • Group: Administrators
  • Posts: 485
  • Joined: 12-February 08

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
<a href="http://www.loadtestingtool.com" target="_blank">http://www.loadtestingtool.com</a>
0

#3 User is offline   rafalmarek 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 25-June 12

Posted 04 July 2012 - 04:15 PM

View PostSergei Leonov, on 30 June 2012 - 09:35 AM, said:

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.
0

#4 User is offline   Sergei Leonov 

  • Advanced Member
  • PipPipPip
  • Group: Administrators
  • Posts: 485
  • Joined: 12-February 08

Posted 05 July 2012 - 10:26 AM

View Postrafalmarek, on 04 July 2012 - 04:15 PM, said:

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
<a href="http://www.loadtestingtool.com" target="_blank">http://www.loadtestingtool.com</a>
0

#5 User is offline   rafalmarek 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 25-June 12

Posted 05 July 2012 - 02:37 PM

View PostSergei Leonov, on 05 July 2012 - 10:26 AM, said:

Could you give me your profile?


I've send profile to support@loadtestingtool.com
0

#6 User is offline   Sergei Leonov 

  • Advanced Member
  • PipPipPip
  • Group: Administrators
  • Posts: 485
  • Joined: 12-February 08

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
<a href="http://www.loadtestingtool.com" target="_blank">http://www.loadtestingtool.com</a>
0

#7 User is offline   rafalmarek 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 25-June 12

Posted 07 July 2012 - 07:08 AM

View PostSergei Leonov, on 06 July 2012 - 05:28 AM, said:

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

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users