Contributions
Issue with secured(Https) web application
Hi, We have an application with secured (https) and unsecured (http) versions. We have a problem with secured (https) version of the application. We have recorded a scriptfor the secured(Https) appliation using test complete and we are getting warings when we replay the script as the recorded script has 302 as the response for some requestsbut during replay we are getting 200 as the response for those requests.when we recorded the script onthe unsecured (http)version of the same application we have 200 as the response for the request which are having 302 as response in Https version. Can anyone help us in resolving this issue. Regards, Baba9.2KViews0likes1CommentRe: How to update the URL in request header through OnLoadReuest event handler
Hi Helen, the reason for asking to replae th URL is that there are dymanic values in url that are to be replaced, the problem is that this dynamic value is not in any variable. The url will look something like GET ABC.aspx?wuiebgiwebnghejkbnjkNHNHWNH html1.1 As you can see that there is no variable mentioned after the ? I need to replace this value (wuiebgiwebnghejkbnjkNHNHWNH) with newly captured variable. I tried doing this by using url varialbes but it failed as the replaced url displayed something like GET ABC.aspx?wuiebgiwebnghejkbnjkNHNHWNH=wiojgowgognowengownbho html 1.1 where wiojgowgognowengownbho is the new value. the string replace that you have suggested is also not working. it is still displaying the old value after doing a string replace. Let me know if you have any thoughts about this.1.1KViews0likes0CommentsHow to update the URL in request header through OnLoadReuest event handler
Hi... Can anyone please let me know, how to update the URL in getrequest header through event handler. I am able to retreive the (belowspecified)request header using onloadrequest. I have to update the GET /xyz/abc.aspx HTTP/1.1 to GET /123/345.aspx HTTP/1.1 I do not want to save this in a txt file and replace. PLease helpon how to replace this and pass the updated value instead of old value in the request Request Header: GET /xyz/abc.aspx HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/msword, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */* Accept-Encoding: gzip, deflate Accept-Language: en-us Cache-Control: no-cache Connection: Keep-Alive Cookie: ASP.NET_SessionId=fffbtg55l1b1a245cgnrlymb; HttpOnly; .ASPXAUTH=8432932D13AF6D34CDF4121E65F94E57B603A57582ACDC65C6D04DFA4E2670AA1311A365C67899B81A2C34C23B5C37E2FA9648FD992DE941C5D410B6715C10F2453FE079CB85FF792262D021ABC4BCE1D92C80BFEFE72B35E09B62A3F1E7AB48B5E1C4D330D79DF3ADC09D86599EA8B7F06BA16C68D9587674010E151F2367A3EBD179AA; HttpOnly; HttpOnly Host: XYZ:80 Referer: http://xyz/ UA-CPU: x86 User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322)12KViews0likes5CommentsERROR-SSL Negotiation Failed
Hi, We have created a performance test script for a business flow in our application. This script was working fine till we change the target server to our production server. After changing the target server path from QA to Prod we are getting the error "SSL negotiataion failed- Error-0x80090308" Can anybody look into this post and let us know where we went wrong. Please find the attached screen shot for the error message logged in the default log. Please let us know if yoy need any additional information on this issue. Regards, Baba11KViews0likes1CommentRe: Issue in object recognition
Hi Jared, Thank you so much for your quick reply and i tried with the property 'Row count' and it worked. But i need further help , we need to compare this row count with no.of records in data base. i have written script to execute SQL query and that query is also returning the same value as row count. Now the issue is we are posting the value returned from SQL query to the TC log. Is there any way to comapre the row count captured through script with value posted to TC log or else can we store the value returned from SQL query to a variable. Below is the code i have written: Orderitemcount= Aliases.Agresso.Agresso_Mainwindow1.AWO_Window.AWOItems.RowCount log.Message(Orderitemcount) .Message(Orderitemcount) 'Executing SQL Query to verify the no.of records for the same AWO in data base Set Qry = ADO.CreateADOQuery Qry = .CreateADOQuery ' Specify the connection string Qry.ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Agresso_QA;Data Source=GLNWD021\QA" ' Specify the SQL expression Qry.SQL = "Select count(*) as count from aq1orderitem where awo_id='"&Project.Variables.NewAWO&"' and Client='LD'" Qry.Open Log.Message("No of Items for the AWO "& Qry.FieldByName("count").Value) .Message("No of Items for the AWO "& Qry.FieldByName("count").Value) Qry.Close Regards, Baba.1.1KViews0likes0CommentsIssue in object recognition
Hi.. We are facing an issue in object recognition during our functional testing of an windows based application. We have grid on the screen and we need to get the no.of items in the grid using the object properties. Test complete is not recogninsing the object as grid. Please find the attached screen shots for the object screen and object properties10KViews0likes3CommentsRe: Object doenot exist after multiple executions
Hi Biji, You can add your application to tested applications in test complete by doing the following: Right Click on your project name-> Select the option Add -> Select 'Testedapps' -> Browse the path of your application ->Click OK. Now write the code Sub test Testedapps.Yourapplication.run End sub The above code will open your application automatically and now try to recoed login from here..959Views0likes0CommentsGetting error while trying to execute SQL statement through script
Hi, I am Getting an exception while trying retrieve data from database through script. Below is the error message and Query we are using in the script : Error Message- “Conversion failed when converting the varchar value 'B03001' to data type int” Query-Select count(*) as count from aq1orderitem where awo_id="&ProjectSuite.Variables.NewAWO&" and item_type = 'POSL' Where the AWO in DB is of Varchar type. We are capturing the AWO from another script and while capturing that AWO into project suite variables we tried to create&save the variable as String/Integer . I tried with convert functions but there is no function to convert from String/Integer to varchar. Below is theadditional script: aqConvert.IntToStr(ProjectSuite.Variables.NewAWO) Set Qry = ADO.CreateADOQuery Qry = .CreateADOQuery ' Specify the connection string Qry.ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Agresso_QA;Data Source=GLNWD021\QA" ' Specify the SQL expression Qry.SQL = "Select count(*) as count from aq1orderitem where awo_id="&ProjectSuite.Variables.NewAWO&"" ' and item_type = 'POSL'" ' Execute the query Qry.Open ' Process results and insert data into the test log Qry.First Qry.Open ' Process results and insert data into the test log Qry.First While Not Qry.EOF Qry.EOF Log.Message Qry.FieldByName("count").Value .Message Qry.FieldByName("count").Value Qry.Next Wend ' Closes the query Qry.Close Please help me in resolving this issue. Qry = .CreateADOQuery Qry.EOF.Message Qry.FieldByName("count").Value8.9KViews0likes2Comments