Telerik Forums
Test Studio Forum
5 answers
131 views

Hi

I am trying to count number of columns and column values from a table but everytime I am getting wrong values.

Please check below for the Object Property:

Object Property

<table rules="all" cellspacing="0" cellpadding="3" border="1" style="border-collapse: collapse;" columncount="10" expandedclientidsname="HierarGrid_ExpandedIDs_ResultsGrid_ctl06" class="Datagrid">

Code:
Dim t As HtmlTable = myManager.ActiveBrowser.Find.ByExpression(Of HtmlTable)("class=Datagrid")

 

 

Dim Rowcounts As Integer = t.Rows.Count              

 

 

Dim ColumnCount As Integer = t.ColumnCount()

 

 

Row Count is working properly but Column Count is not working properly.

I am using above code to find the number of columns but instead of returning 10 it is returning 2. So please tell me the solution.
Do let me know if I am doing anything wrong.         

Missing User
 answered on 21 May 2010
1 answer
77 views
What is the best way to do this?

I could type Control A then hit backspace then type.


I was wondering if there is a better way?
Cody
Telerik team
 answered on 21 May 2010
1 answer
197 views

I find WebUI test studio is a great tool to test Silverlight. I have the following question.

When I record the Silverlight apps, generate c# and run the test case, test cases will open IE, simulate users to use the mouse to click the website.    It means I can’t use my mouse to do anything until the test cases finish running.
 
I know I can find another machine to run my tests.  I know VSTS 2010 web tests (coded web tests)  just run the tests without opening the browser.  Can we just run the tests without opening the browser and  without letting the  mouse move automatically?  Because if control the mouse, the tests can't move on. :)

 Thanks,

Ray

Cody
Telerik team
 answered on 21 May 2010
4 answers
101 views
I'm facing a weird problem here. I need to separate the common steps in the testcases and create a method in a new class. But it doesnt work.
For example, I have recorded 6 screens and the way to reach all the six screens are common. Only the core part of the screen differs. In this case there is so much of  duplicate code and I'm trying to remove that. I copied the common steps to a function in a new class and called that function from the testcase. It doesnt work at all. The common class inherits the same classes as done by the test cases. There is no compilation error or warning. But it just doesnt call them. It makes the function look insignificant.

Kindly help me get through with this issue. I'm not able to figure out if this is a problem with the tool or c# itself. Thanks in advance for the reply.
Missing User
 answered on 20 May 2010
6 answers
224 views
I keep getting An Error Has Occurred when installing WebUI QA Edition. Then it backs out the install with no other explanation. Only a warning in Application log "Product: Telerik WebUI Test Studio 2010.1 -- Installation failed." I am trying to install on Windows XP Professional Version 2002 SP 3 with 1 GB of RAM
Cody
Telerik team
 answered on 19 May 2010
3 answers
189 views
I've recorded a scenario and it was working fine. But now, the application has undergone some changes and its a pretty slow. So the testcase fails all the time. Is there any way to control the speed of execution of the scenarions in Telerik? As of now, I'm adding Sleep in between, but its not the right way. I dont want my testcase to undergo changes frequently.

Please suggest me a good way to do this.
Cody
Telerik team
 answered on 18 May 2010
3 answers
98 views
I've recorded a scenario and when i try to play it, it fails somewhere. I need to find the reason for the failure. I added a break point to locate the problem, but I ran into another problem. The lines which contain "ActiveBrowser" all seem to type the data in Visual Studio itself. It wasnt typing the text in the textbox in the browser as desired.

Is there any way to do this?
Cody
Telerik team
 answered on 18 May 2010
5 answers
90 views
Hi,

Just installed the QA edition and tried to record my first test.

The recorder is not recording navigate to url steps. Everything else I have tried (using textboxes, clicking buttons etc.) works just fine.

What could be causing these problems?

/Joakim
Joakim Nilsson
Top achievements
Rank 1
 answered on 18 May 2010
1 answer
92 views
hi all
please tell me
 how to take row index in telerik gird in selected row
Konstantin Petkov
Telerik team
 answered on 15 May 2010
4 answers
102 views
I just use this tool today. My environment : Windows 7 and VSTS 2010.
I would like to use WebAii to test silverlight. But when I create the following silverlight application, it always shows the timeout error

 

 

SilverlightApp app = ActiveBrowser.SilverlightApps()[0];

 

In another thread, I find someone was asking this question, but there is no correct answer now.
I used the following ones, but no work luckily.

settings.EnableSilverlight=

 

true; : still has the timeout

 

 

 

Manager.Settings.ExecuteCommandTimeout = (200000); still has the timeout

 

 

 

 

Use fiddler-> Inspector-Header: No response data about application/x-silverlight-app

When I debug it, I find app[0].Count=1 (really has the data) , but I really don't know why it shows the timeout error.

Any idea to fix this issue?

Thank you,
Ray



Ray Lin
Top achievements
Rank 1
 answered on 14 May 2010
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?