Telerik Forums
Test Studio Forum
4 answers
178 views
Hi,

I'm trying to find out how many nodes are in a tree view and for this i'm using the following code:

var myApp= Pages.TelerikTreeViewFor.SilverlightApp;
Telerik.WebAii.Controls.Xaml.RadTreeView tree= myApp.XTreeViewRadtreeview;
tree.InvokeMethod(new AutomationMethod("ExpandAll", typeof(void)));
 
IList<Telerik.WebAii.Controls.Xaml.RadTreeView> items = tree.Find.AllByType<Telerik.WebAii.Controls.Xaml.RadTreeView>();
 
int nrNodes= items.Count();
Log.WriteLine("Number of nodes: "+ nrNodes);

The number of nodes i get in 0.
I'm runnig this code for: http://demos.telerik.com/silverlight/#TreeView/HierarchicalTemplate
Am i doing something wrong?
Can someone give me another example of how can i know the number of nodes in a treeview?

Thanks !
Andrei
Top achievements
Rank 1
 answered on 25 Nov 2013
1 answer
116 views
I'm looking into an issue for our QA involving Chinese characters not showing up properly in the script that is running. I am pretty sure its just a font install missing on our server. Anyone know what font I could be missing for them to just show up as [] [] 

I attached a screenshot
Cody
Telerik team
 answered on 20 Nov 2013
11 answers
523 views
Hi,

After I've run a script it closes the browser, I am able to stop this?

Thank you,

Paul
Cody
Telerik team
 answered on 20 Nov 2013
1 answer
116 views

Hi Telerik Team,

 

we use Cruise Control to schedule the telerik autommated Testscripts. To schwo the results of the tests in Cruise Control, i use an XML-Schema to parse the XML-Results.

The new Version of Telerik.Test-Studio (Version: 2013.1.911) change the strukture of the XML-File for the testresults (i mean the .trx files). So that we no longer the seceond "WebAiiTestResult" with the "AutomationStepResults" and there "Item" have.

The neu Version ot telerik return the result as a single string (se below)

The old .trx-File have fhe folow XML-Tag:

  • Second “WebAiiTestResult”
  • AutomationStepResults
  • And many item

In the neu .trx-File there is only the XML-Tag:

  • TestStudioResult

 

<TestStudioResult xmlns="">{"__type":"ArtOfTest.WebAii.Design.Execution.TestResult","__value":{"Browser":1,"ExeType":0,"SeparatorLineCharCount":60,"Message":"Overall Result: Fail\r\n------------------------------------------------------------\r\n'14.11.2013 20:17:39' - Using .Net Runtime version: '4.0.30319.1008' for test execution. Build version is-------------……. (etc.)

<TestStudioResult>

 

Would you Please fix this problem. Because otherwise we can’t display the results in CruiseControl

 

I have also uploaded the two .trx-Files (the old one and  the new one) and the XSL-Schema.

 

Best regards

Mostafa

 

Velin Koychev
Telerik team
 answered on 20 Nov 2013
3 answers
117 views
Hi,

I have a 'logon' test that I would like to use with many different tests. I would like to pass two parameters: "userName" and "password" to the "Logon" test from many another tests.

I have followed the "Data bound Test A calls Test B" instructions here: http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/data-driven-testing/multi-level-tests.aspx but it does not seem to work.

Setup {

Users.xlsx
UserId | Password
User01 | somePassword

HomeTest.tstest (Bound to dataset Users.xlsx):
Execute test 'Logon'

  • Logon.tstest (InheritParentDataSource is ticked):
    • Navigate to : 'https://[left this out for the purpose of security]' 
    • Enter text '' in 'UserNameText' - DataDriven: [$(UserId)]
      Enter text '*****' in 'PasswordPassword' - DataDriven: [$(Password)]
    • Click 'SubmitCredsSubmit'

} EndSetup

When I execute HomeTest.tstest nothing is entered in the 'username' or 'password' textboxes.
I was under the impression that "the data source definition for Test A will propagate down to Test B and be available for use by Test B", but this is not happening. Do I have to do anything special on the call "Execute test 'Logon'"?


Boyan Boev
Telerik team
 answered on 18 Nov 2013
1 answer
116 views
Hi,
The data entered via our GUIs ends up in an SQL database (the database is part of our product).   After validating the ability to interact with the GUI, I want to validate that the data in the database is the same as the data entered via the GUI. 

I understand it is possible to bind a database to a test - during that process a local instance of the database is created and used during subsequent testing (I assume if the data in the original data base changes the local copy is not up dated).  However, in our case the data is dynamically changed during the test run, it follows that the database bound to the test would need to change.  Is it possible to bind an SQL database on the fly, so that I can verify that the entries made via the GUI have actually been recorded in the database?

Cheers
Dave   
Boyan Boev
Telerik team
 answered on 18 Nov 2013
1 answer
143 views
I have developed my testcases in one environment called ABC. Now my company has created different environment. But in diff environment elements are going to be same. So when I use same step for diff environment only one or 2 step is executiong others are not. Can you help me in this case?


I have attached a file .
example: i want to select manager,I have to go through same step as in other url.
1) in branch element this how"Manager" is showing
2) in trunk element is "Manager" is same

So what should I write that works in both url.

Thank you.
Mario
Telerik team
 answered on 15 Nov 2013
1 answer
103 views
Hello,

After successful completion of a load test recording session from an existing script we have over 1000+ Dynamic Targets.  Per the documentation we should be selecting all.  This takes quite a bit of time having to select each check box one by one.  Is there a way we could tell what items truly needed to be selected and then filter?  If not I think a select all button would be helpful in the next build if possible.

Thanks!

Leon
Cody
Telerik team
 answered on 14 Nov 2013
4 answers
72 views
I have profiles captured from existing web tests...when the load test executes, will it terminate all virtual users exactly at the end of the duration of test, or allow the virtual users to complete the script execution (and therefore running a few seconds/minutes beyond the specified duration)? 
Alan
Top achievements
Rank 2
 answered on 13 Nov 2013
1 answer
67 views
Hi,

While doing a performance test on webpage using https protocol i see many methods of with Name/Type as 'Unknown' and method 'Connect', could you help me what this object is?

Also, what is the receiving time - is it page rendering time in browser? Is there anyway to further detail the receiving time?

Thanks,
Aswin
Boyan Boev
Telerik team
 answered on 13 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?