MSVS 2010 Ultimate Edition to Web Test Silverlight 4 application

Locked MSVS 2010 Ultimate Edition to Web Test Silverlight 4 application

  • mercredi 21 mars 2012 20:34
     
     

    Need to run a web performance test on a Silverlight 4 application which uses XAP and binary messaging (RIA) service.

    Recording is OK but replay not.  All the calls with String Boy in binary format failed (not return errors but Fault message and not update made in back end)

    Installed VS2010 Web Test Plugins for Web Service Message (Release 2.0) (http://teamtestplugins.codeplex.com/releases/view/43166).   Added web test plug in before recording, and reference to RunTime, Message Editor and Result Tab to the project.  The recording still has binary body and request in Web Service Tab of playback is blank for all calls.  The result view in Web Service Tab shows parsed XML correctly.  Checked Add-In Manager, it only shows Web Service - Result Tab available and can be checked but no Message Editor.

    Have also tried Fiddler2 and saved as webtest.  The same result, although it passes the call to XAP in clientbin with additional header info (comparing to VS recording, the call would have timed out).  Coded webtest with Fiddler recording and VS recording the same thing.

    Would greatly appreciate any insight and help on how to run a web performance test on a Silverlight 4 applications?  (have checked quite a few questions and answers in the forum, need to be specific to Web Test, not CodedUI, nor generics on setting a load test).

    Thanks in advance.

Toutes les réponses

  • vendredi 23 mars 2012 04:45
    Modérateur
     
     

    Hi wyjp202,

    Thank you for visiting the MSDN forum.

    Do you mean that your web tests are failed, but you didn’t get any error messages?

    If so, I think it was hard to narrow down this issue. Would you mind sharing us your Silverlight app, we try to record a web test for it.

    Please attach your Visual Studio project, you can upload it to the sky driver, and then share the download link in your post. Please also attach a screenshot image about the recorded requests in your post.

    Two threads about performance testing for the Silverlight application:

    http://social.msdn.microsoft.com/Forums/en-US/vstswebtest/thread/42ef2195-f520-4faf-8bea-c847a6551bcc.

    http://social.msdn.microsoft.com/Forums/en-US/vstswebtest/thread/aae81d85-7079-48f7-a7a8-bd8fcd458499. Hope it can help.

    Best Regards,


    Jack Zhai [MSFT]
    MSDN Community Support | Feedback to us

  • vendredi 23 mars 2012 13:09
     
     

    Jack,  Thanks

    I have tried the plug in before posting the question, and one of the issues I encountered is that the request pane on the web service tab added by the plug in is blank.  The issue is similar to the latest unanswered question on the codeplex project discussion page.  We can see the results but not the requests.

    We did notice that there is something different from the pdf instruction in the zip of 2.0. If I create a C# web test project without making any additional reference, and try to click web test plug in, it will prompt that there is no reference to tools.webtest.plugin.  If I add explicitly the reference to message editor, run time and response body, then the message will not show but there is no description about the plug in.  This is exactly the same as shown in the pictures in the 2nd thread you refer to.  When I check the add-on manager, it only shows results tab can be enable but not showing message editor.

    My main challenge at this point is to convert the msbin1 binary message to editable text so that I can manipulate the body string.  I will most likely need to use coded webtest and the conversion would also have to be in the generated code as well.

    As an example, the body of one request has following in the generated code (from recording): " ..... InPositionSID.nil�`\rWallVersionId�^\rEntityActions.nil�\tb9http://schemas.mi" +
                    "crosoft.com/2003/10/Serialization/Arrays^HasMemberChanges�^Id�^\tOperation�In" +
                    "sert^ChangeSetEntry^ Associations\tb9http://schemas.microsoft.com/2003/10/Seri" +
                    "alization/Arrays_\"KeyValueOfstringArrayOfintty7Ep6D1_Key� WallVersion_Value_" +
                    "int�\0\0\0^Entity.type�c:Wall\tbQ

    What I need is to recreate the body, adding or removing xml element, and/or correlating xml element values, based upon responses from earlier requests.

    So I want to find a way to have editable request body string.

    Thanks

  • vendredi 23 mars 2012 23:57
     
     

    Hi, have you tried to decode the msbin1 binary yourself?

    have you tried System.Convert.FromBase64String and/or

    System.IO.Compression.DeflateStream?

  • lundi 26 mars 2012 07:49
    Modérateur
     
     

    Hi wyjp202,

    Glad to receive your reply.

    Officially, this web test plug is not supported on forum. But if you can provide detail steps to reproduce the question, more people might suggest.

    Best Regards,


    Jack Zhai [MSFT]
    MSDN Community Support | Feedback to us

  • vendredi 30 mars 2012 14:28
     
     
    Thanks for the suggestion and will give a try.
  • vendredi 30 mars 2012 14:38
     
     

    Thanks.

    Details as follows:

    OS:  Windows 7 Enterprise 64 bit.  MSVS 2010 Ultimate with SP1.  Silverlight Tookit installed prior to applying SP1.

    Install the Web Service Plug in and it will put 3 dlls in 2 directories as documented in PDF file included in the download. After installation, there is a new tab created in the result view (web service).  the tab contains 2 panes, one for request, and one for response.

    Open a web test project, and before actual recording, add reference to the plug in run, and then select the web service plug for the web test. Start recording as normal.  after replaying, you can see the response in xml format in the response pane of web service tab. but the request pane would be blank for requests even with posts if you encounter the similar issue as I do.  In that case, click the addin manager in the menu, and you will only see results addin but not the message editor addin.  in addition, the body string of the request (declarative or generated code) contains the string as I posted above, not a strict text string.

  • mardi 3 avril 2012 03:25
    Modérateur
     
     

    Hi wyjp202,

    Glad to receive your reply.

    Based on you description, I’m afraid that this issue is related to this plug-in. My suggestion is that you could just share us a simple web test, I will try to add this plug-in. Then I will post the result in my reply.

    But I hope that you could share us the screen shots about the issue, and then I will post my screen shots, so we could compare them directly.

    Please attach your web test, you can upload it to the sky driver, and then share the download link in your post. Please also attach the screenshot images in your post.

    Have a nice day,


    Jack Zhai [MSFT]
    MSDN Community Support | Feedback to us

  • lundi 16 avril 2012 12:14
     
     

    Need to run a web performance test on a Silverlight 4 application which uses XAP and binary messaging (RIA) service.

    Recording is OK but replay not.  All the calls with String Boy in binary format failed (not return errors but Fault message and not update made in back end)

    Installed VS2010 Web Test Plugins for Web Service Message (Release 2.0) (http://teamtestplugins.codeplex.com/releases/view/43166).   Added web test plug in before recording, and reference to RunTime, Message Editor and Result Tab to the project.  The recording still has binary body and request in Web Service Tab of playback is blank for all calls.  The result view in Web Service Tab shows parsed XML correctly.  Checked Add-In Manager, it only shows Web Service - Result Tab available and can be checked but no Message Editor.

    Have also tried Fiddler2 and saved as webtest.  The same result, although it passes the call to XAP in clientbin with additional header info (comparing to VS recording, the call would have timed out).  Coded webtest with Fiddler recording and VS recording the same thing.

    Would greatly appreciate any insight and help on how to run a web performance test on a Silverlight 4 applications?  (have checked quite a few questions and answers in the forum, need to be specific to Web Test, not CodedUI, nor generics on setting a load test).

    Thanks in advance.


    we are also facing the above same issue.Any body please reply if you have any correct solution to over come this issue
  • jeudi 19 avril 2012 13:26
     
     

    Hi Jack,

    we are using Visual studio 2010 Ultimate for our Application which is developed by using Silverligt Version 5.0.61118.0.we are facing an issue here.I have a question here

    1) whether this VS 2010 Ultimate will support Silverlight  version 5.0.6111.8.0

    It would be great help if you reply ASAP.

    Thanks

    Emani.


    Emani.Veeranjaneyulu Senior Test Enggg HCL TECHNOLOGIES