Telerik Forums
Test Studio Forum
2 answers
132 views

Hi,

If I have 10 items in my listboxitem, is it possible to get the index # from it?

 

For example, if I click the last item, the code looks like the following one.

 

 

listboxitem[9]: Is it possible for me to add code and get 9 here?

 

Thanks

 

Ray

 

public ArtOfTest.WebAii.Silverlight.UI.ListBoxItem ListboxItem

                {

                    get

                    {

                        return Get<ArtOfTest.WebAii.Silverlight.UI.ListBoxItem>("XamlTag=listbox", "automationid=acctTree", "|", "XamlPath=/grid[0]/border[0]/scrollviewer[automationid=ScrollViewer]/border[0]/grid[0]/scrollcontentpresenter[name=ScrollContentPresenter]/itemspresenter[0]/virtualizingstackpanel[0]/listboxitem[9]");

                    }

                }

Missing User
 answered on 17 Jun 2010
3 answers
89 views
Hi there,
Last week I started to watch a video on QA Edition which was about an hour long.  It doesn't seem to exist on your site anymore.  Am I missing it or has it been taken off?  All I can get is the 3 min overview video, and I was finding the other one quite helpful. 
Many Thanks,
Elaine.
Cody
Telerik team
 answered on 16 Jun 2010
3 answers
210 views
Is it possible to automate testing of tooltips?
Cody
Telerik team
 answered on 16 Jun 2010
4 answers
104 views

Hi, I have a question.

Sometimes my test cases pass, but sometimes my test cases fail due to the following error.

System.TimeoutException: Wait for condition has timed out

I believe it is the network speed issue. I would like to customize the error message, but I find it seems not possible for me to do it. Is it possible for me to know which step or line throws this exception?  I can increase the sleep time.

 Thanks,

Ray

Cody
Telerik team
 answered on 16 Jun 2010
6 answers
126 views
Hello,

I am trying to find an easy way to compare data in a table against a database of some sort, for this instance a CSV file. Specifically, I want to compare each data cell in a table with the CSV file, without the need to select everything in the table individually. Instead, I would like to select each cell the the first row, and compare the data in it against my CSV file, then move on to the next row of the table and repeat the process. I have had no problem binding the CSV to a single cell, but I can't seem to find a way to move to the next row on the site. Is such a thing possible, and if so could you point me in the right direction as to how to get started?

Thanks,
-Justin
Kristine Ayson
Top achievements
Rank 1
 answered on 16 Jun 2010
3 answers
171 views
The silverlight application I'm testing has changed its url. My old tests no longer work eversince. I have been encountering this error:

Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: Unable to find the Silverlight plugin on the following page:'http://sanjose:1810/' using the following expression:'[id 'Exact' Div1] THEN UNDER NODE FIND [tagIndex 'Exact' object:0]'. Exception: System.TimeoutException: Wait for condition has timed out
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
   at ArtOfTest.Common.WaitSync.For[T,V](Func`3 func, T target, V custom, Boolean invertCondition, Int32 timeout)
   at ArtOfTest.WebAii.Synchronization.Wait.ForCondition(Func`3 condition, Boolean invertCondition, Object custom, Int32 timeout)
   at ArtOfTest.WebAii.Synchronization.Wait.ForExists(Int32 timeout, Boolean refreshElement)
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.GetHost(IAutomationHost topBrowser, ElementDescriptor element, Int32 hostFindTimeout, Int32 appConnectTimeout, Boolean cachedSLAppOnly, String& error)

I tried to record a new test using the new url, and the test studio created a new instance of the silverlight application. Please see attached screenshot.

How can I make the old tests work with the new url?

Regards,
Kristine
Cody
Telerik team
 answered on 15 Jun 2010
4 answers
142 views
Is it possible to start a test execution from a command line?
Missing User
 answered on 10 Jun 2010
1 answer
90 views
Hi,

After I choose a file from RadUpload, I wonder how do I clear the file selection, and leave the component in the initial state. That is, without any files selected.

Grateful,
Genady Sergeev
Telerik team
 answered on 10 Jun 2010
1 answer
104 views
Hi,

I recorded a scenario which accepts unique data. Before replaying the recorded script I changed the input value through the properties window. But the tool is setting blank values. Please help me solving the issues. I am not scripting , I am just recording the scenario and playing it back with a set of new data.



Thanks & Regards
Archana
Cody
Telerik team
 answered on 09 Jun 2010
12 answers
344 views
Hello

Could you, please, clarify how to set empty value into RadDatePicker?
Recorded step "RadInput: value '' entered." does not clear the field.

When I converted the step into Codded step, I get the following compilation error:
--------------------------------------------------
c:\Users\Documents\WebUI Test Studio Projects\Proj\New Test.aii.cs: Line 77: (CS1061) 'ArtOfTest.WebAii.Controls.HtmlControls.HtmlSpan' does not contain a definition for 'TypeText' and no extension method 'TypeText' accepting a first argument of type 'ArtOfTest.WebAii.Controls.HtmlControls.HtmlSpan' could be found (are you missing a using directive or an assembly reference?)


Thanks,
Svetlana
Svetlana
Top achievements
Rank 1
 answered on 09 Jun 2010
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?