Telerik Forums
Test Studio Forum
2 answers
154 views
Hi,

I would like to read the value that appears in the tab of the page I'm viewing in Internet Explorer 9.  For instance, this page I'm looking at now is called "New Forum Thread | Telerik..." (followed by a string defining the thread, etc.).
In my Code Behind window I have this VB sub:

        Public Sub GetTabTitle()
            Dim pageTitle As String = ActiveBrowser.PageTitle
            Log.WriteLine(pageTitle)
        End Sub
I haven't added any Imports so the script just has the default ones.
When I execute my script the log shows:

C:\Users\edwardni\Documents\Test Studio Projects\Base\SystemAdmin\SA_Themes\ValidateThemesScreen.tstest.vb: Line 72: (BC30516) Overload resolution failed because no accessible 'AreEqual' accepts this number of arguments.


Can anywone advise where I am going wrong?

Thanks,
Nigel Edwards, Transition Computing.
Nigel
Top achievements
Rank 2
 answered on 16 Feb 2012
7 answers
220 views
Hi Cody,

One more issue...

I have scenario like below.....

after login in to my application, i will search on some criteria...and will return data.

iam havig requirement like i should compare number of rows displayed on grid with number of rows count from database query execution.

iam succesfully able to connect db and getting number of rows information but while comparing with radgridview rows...am not able to set count verification for the radgridview in sentence verification builder.

after enabling hover over highlighting, i placed curser on one of the row on grid and selecting the uppermost option ie., radgridview...and selcted build verification...opended sentence verification builder popup containing count verification, gridview state, property , location & visibility option verification.

upon selecting count verification, am seeing row count option first drop down and then equal option second drop down.

upon checking last drop down..... it is showing "value?" ... but it should display numbers of rows by default....
here even  i set a value of number of rows manually....

upon executing this test case, this step is failing and upon chekcing log saying the message that

Expected 46, Actual 0, compare failed......

Please help me here....

where should make a change,,,,,tomorrow is my demo...running with poresuure....

Thanks.,
Hari
Plamen
Telerik team
 answered on 14 Feb 2012
27 answers
442 views

Hello

I try to test wpf application the studio start record the application and after the application loaded it closed and can't record anything.

What can be the problem?

Best regards

Ehud

Anthony
Telerik team
 answered on 14 Feb 2012
4 answers
217 views
Hi,

I would like to know if it's possible to parameterize the Handle 'FileUpload' dialog.
What I have is a list of around 20 files in an Excel sheet.  The sheet contains other columns of data that I don't want to interact with.  The sheet is not bound as a data source as I don't want to iterate through all the rows.  I just need to select one row at random, abstract the file name & path from the appropriate column, and upload it.  What is the best way of doing this?  I've read the 'Random Row' guide in the on-line help, so I think I can select the random element, but I'm still uncertain how to apply it to this particular kind of test.

Thanks,
Nigel Edwards, Transition Computing.
Nigel
Top achievements
Rank 2
 answered on 14 Feb 2012
3 answers
110 views
Hi

I am trying to write a vb script to generate a random text to be inserted into text box. how do I extract the random text from script to the textbox? any help is appreciated.

Thanks
Plamen
Telerik team
 answered on 13 Feb 2012
1 answer
190 views
In order to get around not being able to manipulate flash objects, I decided create inserts in the backend since we are not concerned with how the flash object operates, but it is essential to our product.  

 

thisCommand.CommandText = "INSERT INTO TEST VALUES('TEST')"
(Test table only has 1 column)

 


For some reason I can't write into a sql server database from Telerik.  I have been able to read  though.  The line of code above does nothing and script step still passes.  I have used the same connection string and command in a .vb file and have been able to insert.  Is there something that I am missing?

Thanks,

Jonathan


Stoich
Telerik team
 answered on 13 Feb 2012
4 answers
366 views
Hi Folks,

I want to compare two variables in my script.  The scenario is that I:
   1) extract the current value from a dropdown and bind to a variable
   2) do something (to make the value change)
   3) extract the new value from the dropdownb and bind to a different variable
   4) compare the two values.  If the values match, the test passes.

These are my two extract lines:
Extract selection 'ByText' on 'UserInterfaceThemeNameSelect' into DataBindVariable $(SchemeChosen1)
Extract selection 'ByText' on 'UserInterfaceThemeNameSelect' into DataBindVariable $(SchemeChosen2)

In code I would use an IF...ELSE statement, but I really want to avoide using code.  Is there a native solution?  (I've briefly searched the forum and didn't find anything that answered my specific query, but if you know of a thread - or a video - please tell me).

If there is no native solution, would someone help with the coding (VB)?

Thanks,
Ngiel Edwards, Transition COmputing.
Nigel
Top achievements
Rank 2
 answered on 13 Feb 2012
3 answers
230 views
I'm getting weird COM exceptions. I can't seem to be able to click on (or execute Open command) on a drop down first time (then second time it opens and clicks on the right choice, but then it gives me COM exceptions... an example (I've also gotten System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL as well):

Failure Information: 
~~~~~~~~~~~~~~~
ExecuteCommand failed!
InError set by the client. Client Error:
System.Runtime.InteropServices.COMException (0x80020006): Unknown name. (Exception from HRESULT: 0x80020006 (DISP_E_UNKNOWNNAME))
   at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args)
   at ArtOfTest.InternetExplorer.JsObjectWrapper.GetProperty(String property)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessSilverlightCommand(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
BrowserCommand (Type:'Silverlight',Info:'NotSet',Action:'NotSet',Target:'ElementId (tagName: 'object',occurrenceIndex: '0')',Data:'{"Method":null,"Property":null,"Reference":{"ObjectName":"$root","Path":"\/page:-1:52176326","Properties":[]},"Reference2":null,"Type":4,"Value":"GkMk3aAbn2KaxwITLjrzy0pr\/Kk="}',ClientId:'Client_589f167e-dce9-452a-94fb-601859634ba0',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.Runtime.InteropServices.COMException (0x80020006): Unknown name. (Exception from HRESULT: 0x80020006 (DISP_E_UNKNOWNNAME))
   at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args)
   at ArtOfTest.InternetExplorer.JsObjectWrapper.GetProperty(String property)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessSilverlightCommand(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
InnerException: none.


InnerException:
ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
InError set by the client. Client Error:
System.Runtime.InteropServices.COMException (0x80020006): Unknown name. (Exception from HRESULT: 0x80020006 (DISP_E_UNKNOWNNAME))
   at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args)
   at ArtOfTest.InternetExplorer.JsObjectWrapper.GetProperty(String property)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessSilverlightCommand(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
BrowserCommand (Type:'Silverlight',Info:'NotSet',Action:'NotSet',Target:'ElementId (tagName: 'object',occurrenceIndex: '0')',Data:'{"Method":null,"Property":null,"Reference":{"ObjectName":"$root","Path":"\/page:-1:52176326","Properties":[]},"Reference2":null,"Type":4,"Value":"GkMk3aAbn2KaxwITLjrzy0pr\/Kk="}',ClientId:'Client_589f167e-dce9-452a-94fb-601859634ba0',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.Runtime.InteropServices.COMException (0x80020006): Unknown name. (Exception from HRESULT: 0x80020006 (DISP_E_UNKNOWNNAME))
   at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args)
   at ArtOfTest.InternetExplorer.JsObjectWrapper.GetProperty(String property)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessSilverlightCommand(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
InnerException: none.


   at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
   at ArtOfTest.WebAii.Silverlight.SilverlightProxy.ExecuteSLCommand(SilverlightCommand cmd)
   at ArtOfTest.WebAii.Silverlight.SilverlightProxy.GetVisualTree(IAutomationPeer root, String hash)
   at ArtOfTest.WebAii.Silverlight.VisualTree.Refresh()
   at ArtOfTest.WebAii.Silverlight.FrameworkElement.Refresh()
   at Telerik.WebAii.Controls.Xaml.RadComboBox.WaitDropDownAnimation(Int32 millis)
   at Telerik.WebAii.Controls.Xaml.RadComboBox.SelectItem(String itemText, Boolean openDropDown)
   at Telerik.WebAii.Design.Translators.Xaml.Input.ComboBox.ActionDescriptors.SelectItemNew.ComboBoxSelectAction.Execute(IApplication appHost)
   at ArtOfTest.WebAii.Design.Extensibility.XamlActionDescriptor.Execute(IAutomationHost autoHost)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
Anthony
Telerik team
 answered on 10 Feb 2012
2 answers
102 views
Hi

While i am rerunning my captured script,its trowing error.As per my understanding perhaps telerik not supporting object within combo box and drop down menu.
Please help me out.

Regards
Ranjith
Divya
Top achievements
Rank 1
 answered on 10 Feb 2012
1 answer
116 views
Hi team,
I upgrade telerik to version 2011.2.1305.0 on both schedule server and execution server Recently, when i schedule a test list, it succeeded to work on ES, but after a period of time, telerik schedule service on ES is stoped and scheduled test list is not finished. can you help to resolve it?
Stoich
Telerik team
 answered on 09 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?