Telerik Forums
Test Studio Forum
8 answers
114 views

We are currently evaluating Telerik Test Studio, and I have a problem trying to get my tests to run steadily in a loop. 

To evaluate, I have written a simple test, which 1) logs the user in to our website, 2) checks that the user is properly logged in (information concerning the user is validated) 3) logs the user out.

This test runs smoothly, but when I put a loop around the test and make it run e.g. 100 iterations (in order to evaluate whether the automated test is stable), it always fails sooner or later. Sometimes on the 3.rd iteration, sometime on the 84.th etc…

When it fails, I get an error in IE 9, saying that the browser has stopped working. When I try to run the same test In Firefox, the browser also closes unexpectedly  sooner or later – but without any errors from the browser. (It is significantly more unstable in Firefox than in IE.) Not surprisingly, the error I get in Telerik Test Studio says that it cant locate the elements it is looking for - since the browser has been closed.  ("is not connected to remote to be able to process command")


Any ideas?

Best regards
Annette

Ivaylo
Telerik team
 answered on 23 Aug 2012
2 answers
180 views
Hi,

I am encountering an issue where there are several checkboxes that need to be checked and saved.  I see that the boxes are checked on the frontend, however they're not being reflected in the backend.  I have tried the following methods and they all failed:

1. recording the click with "simulate real clicks" AND "invoked onclick" set to true
2. using a coded step with the following code:

ActiveBrowser.NavigateTo("http://........);

HtmlInputCheckBox CheckAnimated = Find.ById<HtmlInputCheckBox>("is-animated-ad");
CheckAnimated.Check(true, true);

HtmlInputCheckBox CheckExpanding = Find.ById<HtmlInputCheckBox>("is-expanding-ad");
CheckExpanding.Check(true, true);

HtmlInputCheckBox CheckTaskbar = Find.ById<HtmlInputCheckBox>("is-taskbar-ad");
CheckTaskbar.Check(true, true);

HtmlInputCheckBox CheckPopover = Find.ById<HtmlInputCheckBox>("is-popover-ad");
CheckPopover.Check(true, true);

both method failed, I would appreciate it if you can provide me a better solution to this problem. 

thanks,
Dan
Cody
Telerik team
 answered on 22 Aug 2012
1 answer
123 views
Hello,

I'm new in automation and I'm having troubles with something. I hope someone can help me out here.

I'm having troubles while trying to verify the content of a row after creating it. My issue is that after creating a new "thing" the grid generates a row with a dinamic ID and I can't verify if the "thing" was created or not because I don't know how to locate the row that was created.

Thanks in advance,
Ignacio



Plamen
Telerik team
 answered on 22 Aug 2012
3 answers
58 views
Hi Telerik Team,

I use the program mstest to execute the Telerik-test cases for WPF using Cruisecontroll. I need a way to extract the test results after the execution as PDF. I know that the results are the trx Files "testresult.trx".
My question is: how can I convert trx files in pdf??? do you know how?

With kind regards
Mostafa
Mostafa
Top achievements
Rank 2
 answered on 22 Aug 2012
13 answers
306 views
Hi,

I have Kendo grid for my Inbox message page.  The look is similar to gmail: Inbox (10) and "10 is the total number of message in my Inbox"

What I want to test is extract the number of message in my Inbox and verify with the number displaying in my label.

My first step:  KendoGridExtract 'Data' item count into DataBlindVariable $(GridMessagesDiv)  --> this line, I can see that the count is "10"

How do I use that count to verify part of my label?

When I record to verify the label; the TextContent displayed as "Inbox (10)"  

Can I do it without coding?

Thanks,
Mindy 
Mindy
Top achievements
Rank 1
 answered on 21 Aug 2012
2 answers
88 views
Hello,

In the project settings, I changed the CompareMode from FullPathAndQuery to RelativePathOnly.  I then updated all Elements and resumed recording.  The new recorded steps revert back to recording under FullPathAndQuery, which then creates duplicate Elements.  How can I force new recording to follow what I selected for CompareMode of RelativePathOnly?

FWIW, the URL I am using follows the format 'http://test.abc.com/policy/doit.aspx'.  Does this issue happen because the URL is not 'http://www.abc.com/policy/doit.aspx' instead?

Thanks!
Alan
Alan
Top achievements
Rank 2
 answered on 20 Aug 2012
2 answers
113 views
Is there a way to update all elements at one time rather than going in individually to make an update?  We introduced a new tag that significantly helps the identification of an element.  I want to remove 'id' from the find logic of any element that has it and replace it with 'fieldRef'.

Thanks!
Alan
Top achievements
Rank 2
 answered on 20 Aug 2012
4 answers
124 views
We recently purchased a Test Studio license and installed the latest version (2012.1.719.0). There are some scripts that i had created and successfully ran in the older version during my trial version but now i am not able to run them. I am getting the below error in the log

'8/15/2012 2:47:55 PM' - System.Data.SqlClient.SqlException (0x80131904): Incorrect syntax near ')'.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
   at System.Data.SqlClient.SqlDataReader.get_MetaData()
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
   at ArtOfTest.Common.Design.Data.DbDataSource.GetDataUnfiltered(DataInfo testBindingInfo)
   at ArtOfTest.WebAii.Design.Execution.DataContext.InitializeDataSource(String outDirectory)
   at ArtOfTest.WebAii.Design.Execution.ExecutionContext.SetCurrentTestAndData(Test test, Boolean canInitializeDataSource)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTest(Test test, TestResult initializationResult)
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(ExecuteTestCommand command)
ClientConnectionId:00a4fab7-c798-40a6-a2fe-0734a1ce481c

Thank you,
Nithin
Cody
Telerik team
 answered on 17 Aug 2012
1 answer
107 views

I have a data driven propery... but when my value is too big like beyond 255 characters ( it seems), the test stalls with beeps and will not take the value.

 

Do you have a size limit on the propery value we can set?

 

I am setting the "FileUploadPath" for my silverlight file upload dialog.  The reason my value is long is...to upload multiple files...

 

 Is there a way to record uploading multiple files at once?...in Silverlight file upload will take as many as select.
 I am trying to acheive this by ...cancatenating the filenames ("file1.txt" "file2.txt" "file3.txt"...) as the input value to "FileUploadPath".  It works..but fails when the value is too long....I have 35 filenames to concatenate like below and it failed....
""DocInitViaUpload_DocSet_A.xlsx" "Large_StaticTestDocument_1.pdf" "Large_StaticTestDocument_2.pdf" "Med_StaticTestDocument_1.docx" "Med_StaticTestDocument_2.docx" "Med_StaticTestDocument_3.docx" "Small_StaticTestDocument_1.docx" "Small_StaticTestDocument_10.docx" "Small_StaticTestDocument_11.docx" "Small_StaticTestDocument_12.docx" "Small_StaticTestDocument_13.docx" "Small_StaticTestDocument_14.docx" "Small_StaticTestDocument_15.docx" "Small_StaticTestDocument_16.docx" "Small_StaticTestDocument_17.docx" "Small_StaticTestDocument_18.docx" "Small_StaticTestDocument_19.docx" "Small_StaticTestDocument_2.docx" "Small_StaticTestDocument_20.docx" "Small_StaticTestDocument_21.docx" "Small_StaticTestDocument_22.docx" "Small_StaticTestDocument_23.docx" "Small_StaticTestDocument_24.docx" "Small_StaticTestDocument_25.docx" "Small_StaticTestDocument_26.docx" "Small_StaticTestDocument_27.docx" "Small_StaticTestDocument_28.docx" "Small_StaticTestDocument_29.docx" "Small_StaticTestDocument_3.docx" "Small_StaticTestDocument_30.docx" "Small_StaticTestDocument_4.docx" "Small_StaticTestDocument_5.docx" "Small_StaticTestDocument_6.docx" "Small_StaticTestDocument_7.docx" "Small_StaticTestDocument_8.docx" "Small_StaticTestDocument_9.docx" "VeryLarge_StaticTestDocument_1.pdf" "

Please help me understand what is going on!

Cody
Telerik team
 answered on 17 Aug 2012
1 answer
93 views
I need to upload multiple files via the file upload dialog.
I have set the fileuploadpath via data driven but only selects one file at a time. 
I want to upload akk 35 files in that folder path at once.
Ivaylo
Telerik team
 answered on 17 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?