Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
4.33/5 (2 votes)
Let's Say I have a windows application with a simple functionality of display the users with the name that matches with the value entered in a textbox..say something like this..

=============================================
C#
private void btnseacrh_Click(object sender, EventArgs e)
  {
      var name=txttextbox.Text;
 
     var Resultdataset= Fecthresultfromdb(name);
     
 // retchresultfromdb method calls the database and fetches all the people whose name //starts with 'name' value entered in a textbox
     
    //finally result set is bind to datagrid for display

    datagrid.datasource=Resultdataset;
 
  }  

=================================================
suppose In case i would have preferred load test using vsts with the help of vs 2010 ultimate, what is to be input i to be provided here. what i meant is , in order to run load test , u need to have either unit test or web test or coded UI test with u...here for win application web test will not come into picture..So we have either unit test or coded UI test.. ok..suppose if im doing only seacrh and display the user functionality, such that the click on button will call the database and get the result set and bind it to the data grid datasource. This data that is fetched is based on what value the user enters in one of the test box..Here what will be preferred either Unit test or coded UI test??..IN case if the unit test is preferred,what would be the unit test case for the simple search and display functionality based on text box value?..just curious to know..... can somebody explain with example to do a load test of windows application.....

case 2: I can do the normal laod test,when i have the solution with me and adding a load test project to that solution..What if the app is already deployed in some citrix server and i want to fins its load test for 30 users..how do I include those network latency and all???
Posted
Updated 9-Jan-14 7:31am
v2
Comments
me.ajaykumar 13-Jan-14 8:53am    
your windows app will be using web services, then you can try to use LOADUI tool to do the load testing.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900