Contributions
Re: 2 methods for load test with scripting, confused about which one to use..
Thank you for the information. I know these codes for functional testing, What I need no know that, if I want to use these piece of scripts in order to make Laod test, which approach should I follow ? Regards,1.1KViews0likes0CommentsRe: I need the exact values added in Average Process Time in Load Testing Analysis Page..
Ok, lets go Step by Step According to "Load Testing Analysis Page" Avg Process Time column stores the average virtual user life time and According to the "HTTP Load Testing - Timing Task Execution" the life time of virtual users contains of three parts,as below 1. Load testing engine initialization time. 2. Time needed to simulate connections (see below). 3. Time needed to log results and calculate the summary. And The life time of a connection consists of the following components: 1. Load testing engine initialization time. 2. Connection initialization time (this time is shown in the Initialization Time (s) column of the Connections section of the Load Testing log page). 3. Time needed to simulate requests and receive responses (see below). 4. Connection finalization time. 5. Time needed to log results. --> At this point, for 1 and 5 in connection times, arent they also included in first step in 1 and 3 ?? ------------ And lets cintunie from help it says that As you can see, the time taken by items 1, 2, 4 and 5 is the difference between the connection time and the sum of request's and response's times. -- > So here is my case again, for a typical test with 1 user and 17 request, Avg. Process Time = 3.85 (in Analysis Page) Sum of all ResponseTimes in the same test, = 0.3 (I dont mention request times, they are always 0) And when I want to calculate that difference in order to learn the time taken by items 1,2,4,5 3.85 - 0.3 = 3.55 So, thats it ?? You mean by test actulay 0.3 seconds and all 3.5 seconds spend for initialization and log writing ? Are you kidding..667Views0likes0CommentsI need the exact values added in Average Process Time in Load Testing Analysis Page..
Hi, I got a realy hard problemhere while analysing my results. Still some values in the log result pages are not clear for me..For example Average ProcessTime in the Laod Testing Analysis Page, in the helps the statement for Avg.Process value in the Analysis log page is this "Average virtual user life time (in seconds) during the test run." In te Help page named "HTTP Load Testing - Timing Task Execution", all times in the log results page is defined but not his one.. I mean, I can not find same exact definitionsfor the Analysis page columns, especialy for average process time.. it is not mentioned anywhere, whether some other times included in it or not. such as test engine initializaiton timeor Time needed to log the results And my problem is related to this; In my load tests, I always see "Response Time" valuesare very very low for any request,such aslike 0.01., 0,02 0,03 seconds etc. So, I am not sure Response Time corresponds to TTLB (Time To Transfer Last Byte) as told to me before, this is still also a big gap for me to analysis my test results.. Something must be wrong in thesedefiniton.. In order to be sure, I make a load test for 1user up to payment page with 17 request, (only aspx requests), again response time are very low Avg. Process time 3.5 seconds, and it is much much bigger than the total of response times.. and When I sum up all time-taken values in the IIS logs this is smaller than Avg.Process Time (time-taken values in IIS logs is also decsribed as TTLB officialy) These are the times for a test with 17 request which only consists of aspx pages. OK, here is the results I get, Avg. Process Time = 3.85 (in Analysis Page) Sum of Process Time of Test Complete Logs = 0.3 Sum of time-taken values from IIS log = 1.473 Someone please tell me this situation ?? What else included it Avg.Process time and how can I calculate real value ? I mean which value I have to decrease from that Avg.process times ? What I want to do is, when I have run some load tests, and a result analysis page, can I show somebody those Avg.Process times as real times taken by users ? It seems , it is not possible to get real real time of test without parsing IIS logs ??8.4KViews0likes2CommentsAdd Validation Rule , is it possible with Test Complete ?
Hi, In my Laod Test, somehow, some vusers can not login after a load level. The web page I am testing uses redirection for soem pages including login. While searching on the internet, I have found msdn page which deals with this problem for Visual Studio Testing program. It says that "The Web application uses a redirect to move from the page Default.aspx to the page Red.aspx. In the Web Test Editor, the request list will show Default.aspx, not Red.aspx, for the request you are trying to find. To find the correct request, expand the request node, expand the Form Post Parameters folder, and confirm that there is an entry RadioButtonList=Red." http://msdn.microsoft.com/en-us/library/ms243183(VS.80).aspx So, in my case Red.aspx is the login.aspx. Some users can not correctly redirected, and I get redirection pages instead of an 500 error. And these users have no set-cookie sections in their response header of login.aspx with POST Method I just wonder if that is possible whithin Test Complete ? How can I handle redirection in my load test ? Can I use script If so how ?? Best Regards9KViews0likes1CommentSome questions about profiling web services with AQTime
In the "Run Parameters Dialog (for ASP.NET Mode)" help page it is written as "The Start Page box specifies the address of the Web page that AQtime will open in the default internet browser after you start profiling your ASP.NET application or .NET web service" What are those .NET web services mentioned? Can I profile my own services resides on Appliactionserver ? And in help page for profiling ASP .NET Application web page "Due to certain security reasons, AQtime cannot profile those .NET applications that reside on another computer." So, how will I profile dll files of services reside on application server ? I mean I have to install the tool in application server ? But this time, will the AQTime work fine, because aspx.files are in the web server.. And AQTime need debugger vs. How will all these be handled ? do I have to write seperate test code for services and run inside Application server ? Can someone give spesific details in order to profile a 3-tier ASP.NET application ? My last question is about SQL profiling., there is only BDE SQL profiler seen, so what about Windows SQL server ? Cant I profile it with AQTime ? My Best Regards,14 years agoPlace AQtime QuestionsAQtime Questions11KViews0likes1CommentRe: check points and wait methods in load test with scripting
Allen thank you for answer, but I am stil very confused on some points. Response and Request event handlers are for comparsion of bodies. Event if it is a load test, there must be some mechanism to control sceneria in the test. Let me clarify my question, During loas test; for some requests (especially for login.aspx POST request in my test) I want it to run a this request if only previous request loaded. or I want it to run a request if only previous requests (or the request I wanted) responseheader status codeis the one I desired (same as in the task) . As far as I know, even if it is a load test, there must be some mechanism to control sceneria in the test. If the requests are send one after another without no control mechanism, this is just using the target server, not sure if the users following proper way. A good example of thisis redirection mechanism, I thinksomehow redirect mechanism can not catch-up test tools speed. and this is a situationthat will not occur in real world.In real world, userscant send further requests if they can not pass login operation. And remember, I am just doing a Load test, this is not a Stress Test, Iwant to simulate simultanoue users at the same time in the web application, I am not testing concurrent users for just a request. I hope ı have told my problem you well. And for event handlers, can I use them in order to go step by step in a load test ? If so can you provide me a example script ?1KViews0likes0CommentsRe: Getting error while switching from keyword test to Load test.
Sri Guda, can you zip all folders under your your problematic project suite and send me via rasim.avci@gmail.com so that I will investigate the issue, maybe I can find a solution. The zip file before your send in this form does not working, all files are missing.1.8KViews0likes0Comments2 methods for load test with scripting, confused about which one to use..
Until now, I have seen two method to handle Load test with scripting and I am confusedwhich one I need to follow ? 1.Method This method is the example used in Advanced Load Test with scripting help page. Itmakes everything inscript including running Internet Explorer. This example deals a very simple page and does not handle much user or parametrization from a database. 2.Method And the other method which usesrecorded tasks request, dealing with 4 vuser. Both of the examples does not deal with running test with much user and parametrisation. The codesare writtenbelow. Please any ideawill be helpful. Best Regards. -------------- Code for the 1.Method function Main() { var p, w, w1, Pg; Options.Web.TreeModel = "Tree"; // Obtain the browser process and the web page window p = Sys.Process("IEXPLORE"); w = p.IEFrame(0).Window("Shell DocObject View").Window("Internet Explorer_Server"); // Go to the Google search page Pg = w.ToURL("http://www.google.com/"); // Enter "TestComplete" in the search field w1 = Pg.Form("f").Table(0).Cell(0, 1); w1.Textbox("q").value = "TestComplete"; w1.SubmitButton("btnG").Click(); // Wait until the results are loaded: "http://www.google.com/search?hl=en&q=TestComplete&btnG=Google+Search" w.Wait(); Pg = w.Page("http://www.google.com/search*"); // Click the first link Pg.Panel("res").Panel(0).Panel(0).Link(0).Click(); } ---------------------------------------------------- Code for the 2.Method function TestLoginLogout() { var TestInstance, HTTPTask, request, VUser TestInstance = LoadTesting.CreateTestInstance("Test") for (i = 0; i < 5 ;i++) { HTTPTask = LoadTesting.HTTPTask("TaskLoginLogout1") request = HTTPTask.Connection(1).Request(5) if (i = 0) { request.BodyVariables.Item("UserName") = "vuser1@hotmail.com" request.BodyVariables.Item("Password") = "123465" } if (i = 1) { request.BodyVariables.Item("UserName") = "vuser1@hotmail.com" request.BodyVariables.Item("Password") = "123456" } if (i = 2) { request.BodyVariables.Item("UserName") = "vuser1@hotmail.com" request.BodyVariables.Item("Password") = "123456" } else if (i = 4) { request.BodyVariables.Item("txtUserName") = "vuser1@@hotmail.com" request.BodyVariables.Item("txtUsrPassword") = "123456" } // create a virtual user and add it to the test instance VUser = LoadTesting.CreateVirtualUser("VU_" & i) VUser.Task = HTTPTask VUser.TestInstance = TestInstance } }11KViews0likes3CommentsHow to parametrise and run properly load test by scripting ?
Hi, I think some point is missing in the help page "Load Testing Advanced Tutorial - Using Scripts" for example How will I handle 250 vuser , Just take them in a loop ? And Do I have to manualy insert all parameters for all vusers andwrite parameters for all different vuser ? as written below request.BodyVariables.Item("UserName") = "vuser@hotmail.com" request.BodyVariables.Item("Password") = "1111" How will I parametrise it ? Just used the variables taken via wizard from a database will work ? ıf so How will take it via script ?8.3KViews0likes1Comment