Can Visual Studio 2010 ultimate be used to create web tests for non .net applications (Java) which is a production web site(i.e with out having project code)?

Locked Can Visual Studio 2010 ultimate be used to create web tests for non .net applications (Java) which is a production web site(i.e with out having project code)?

  • 24 กรกฎาคม 2554 1:30
     
     

    HI,

         My client is using a web application which is devloped in Java by a third party. We don't have any project code for this web application and we have production site URL and credentials to login to the website.

         Can we use VSTS 2010 ultimate version to create web tests and load tests for this web site? I am able to create web tests but many of them are getting failed while i am playing back the tests. Even time to play-back the web tests is not matching with actual web test tim

     

    Thanks and Regards,

    Jagadeesh Babu.M


    M.Jagadeesh Babu

ตอบทั้งหมด

  • 25 กรกฎาคม 2554 13:02
     
     

    Hi Jagadeesh, greetings from Colombia.

    We have a couple of testing projects of Seam Applications (Java Web Applications using Framework Seam), Faces y JSF Applications as well as EJB applications. Basically, you don't need to get source code project to start testing this applications using MTM. However, you must have java programming knowlegde and experience in order to identify and manipulate Session parameters, variables and other data structures used by the application to display information on screen.

    For example, If you are not capable of create a dynamic parameter to manipulate JavaSession variable or ice.session parameter, you could not get the result you expected.

    If you are looking for some help to start this kind of projects, just let me know.

    JUAN CAMILO

    QA TESTER


    JUAN CAMILO RINCON Tester Colombia
  • 25 กรกฎาคม 2554 14:39
     
     

    Hi Juan Camilo,

     

        Thanks for your reply. Note in the link http://msdn.microsoft.com/en-us/library/ms182539.aspx says

    "Typically, Web performance tests are used to test a Web application that is under development and not yet ready for production. Therefore, it is assumed that you have such a Web application."

        I am able to create web performance tests for .NET production sites for which i don't have project code. But when i am trying to create web performance tests for one java production web site, i am not able to get correct time when i am playing back the recorded web performance test. One reason could be this site has few flash files loading while logging into this site.

        We are able to test this site using LoadRunner. So do you mean VSTS 2010 could run similar to Load Runner for testing any production web site applications? As specified in the guide at http://vsptqrg.codeplex.com/ many changes are to be made after we record web performance tests. Can we do all this changes by just looking at Request and Response tab of web performance test with out even knowing what parameters are being exactly passed in Java web application??


    M.Jagadeesh Babu
  • 26 กรกฎาคม 2554 18:32
     
     

    Hi M.Jagadessh!

    "We are able to test this site using LoadRunner. So do you mean VSTS 2010 could run similar to Load Runner for testing any production web site applications?"

    Yes, you can. All of this could be done depending of the recorder you're using. Probably, if you use VSTS recorder, some of the requests could not be completely identified. But, if you use Fiddler 2, probablly you could get more success. I've already done a couple of web testing automation projects for java applications as well as .Net applications on production environment.

    I assume this could not be publically affirmed because you will teaching how you can hack an application. But, I can say "I did it".

    "Can we do all this changes by just looking at Request and Response tab of web performance test with out even knowing what parameters are being exactly passed in Java web application??"

    This depends on how much expertise do you have programming applications. Most of the application developers has programming's style and methodology, you can understand just reading code.

    JUAN CAMILO

     

     


    JUAN CAMILO RINCON Tester Colombia
  • 27 กรกฎาคม 2554 2:26
     
     

    Hi Juan Camilo,

         Thanks for your time. Main problem i am facing is that my Java production web site has flash plugins that shows 'Loading...' etc for almost all pages. I am able to record web performance tests for this Java production web site but while i am playing back the tests I am not able to get correct web response time. If these web tests give proper response time i have to create load tests by using these web performance tests.

         With the plug-in that i have got from http://teamtestplugins.codeplex.com/ i am able to find the work around for silverlight drawback while recording .NET web performance tests. In the similar way do we have any plug-in to support flash files while recording web performance tests?

        As per the link http://msdn.microsoft.com/en-us/library/dd380742.aspx, there is no support for Flash/Java. Apart from this if i have Java production web site for which i don't have project code, wouldn't it be difficult to guess which parameters are static/dynamic for adding extraction rules and validation rules?

    Thanks and Regards,


    M.Jagadeesh Babu
  • 27 กรกฎาคม 2554 18:37
     
     

    Hi Jagadeesh,

    I really enjoy share my experience with everybody to reinforce community skils on testing automation. As much as I can share, I can learn a lot from everybody.

    Now I understand more clearly what your main testing automation problem. I had a similar problem the first time I did create a testing project for an application that used RadControls with Ajax Loading effects. After spend so much time googling for a solution, I decided to create a Request Plug-in with a Loop condition that looks for a label or even an javascript sentence that let the code know the loading effect was already finished. You could try something like this.

    However, Flash and Java used JSON code REST messages to dinamically display content or perform an action. Have you tried recording this request? A possible solution would be try to parse this request to identify when the response were finished.


    If you have VSTS 2008, you will need to do this by CodedWebTest. But, if you have VSTS 2010, it would be much easier. try to identify any label, javascript sentence or image that only appears on screen when loading has finished. Then, create a validation rule and a Loop Condition. If you have the JSON or REST request, please put it in this thread to inspected it.

    Regards


    JUAN CAMILO RINCON Tester Colombia
  • 28 มีนาคม 2555 10:56
     
     

    Hi Camilo,

    I am creating web performance test for a Java application using VSTS. I recorded the script ans when I replay,it is failing. The failed request is not in the recorded web test and it is appearing only while running the script. "http://xxxxx;jsessionid=xxxxxxxxx",this is the pattern of the url we are getting.

    I am unable to add a extraction rule for this because it is not appearing in the Query string parameters in the test.

    Please help me in this,

    kumarm