Telerik Forums
Test Studio Forum
3 answers
335 views

waitforexists is a void method, not a boolean one, so how can I do an if statement on it via the codeless steps? 

 

Also its super annoying to have an else after every if. Sometimes I just want the if, and if the if isn't true to continue execution. 

Plamen Mitrev
Telerik team
 answered on 08 Nov 2019
2 answers
156 views

Hi Team, 

 

I am trying to the get the current Url of the active page and  tried  this. But in the Log View i am not able to see the URL. As after fetching the URL I need to split the URL.   

 var URL = this.ActiveBrowser.Url.ToString();
 Log.WriteLine(URL); 

 

Elena
Telerik team
 answered on 07 Nov 2019
1 answer
81 views

We have a web application with a Kendo Dropdown list box and want to compare the list of items in the UI to what the list should be in SQL.  Does anyone have a good solution for this or can point me in the right location/forum?

 

Thanks so much!

Elena
Telerik team
 answered on 06 Nov 2019
7 answers
131 views

Hello,
sometimes I have "System.Reflection.TargetException: Object does not match target type." exception in HtmlInputCheckBox.Check() method.
Can anybody say what happens? And fix it.

The stackTrace is below.

Exception thrown executing coded step: 'Configure 'Repeat on' days'.
InnerException:
ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
InError set by the client. Client Error:
System.Reflection.TargetException: Object does not match target type.
   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 CallSite.Target(Closure , CallSite , Object , String , BindingFlags , Object , Object , Object )
   at System.Dynamic.UpdateDelegates.UpdateAndExecute6[T0,T1,T2,T3,T4,T5,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
   at CallSite.Target(Closure , CallSite , Object , String , BindingFlags , Object , Object , Object )
   at ArtOfTest.InternetExplorer.IECommandProcessor.InvokeFunction(String functionCall, Boolean useEval, Boolean returnJson, IHTMLDocument2 doc)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommandInternal(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
BrowserCommand (Type:'Action',Info:'NotSet',Action:'InvokeJsFunction',Target:'ElementId (tagName: '',occurrenceIndex: '-1')',Data:'document.getElementsByTagName('input')[14].checked',ClientId:'Client_9419ea84-45a6-4dde-b63a-243e6f22aa03',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.Reflection.TargetException: Object does not match target type.
   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 CallSite.Target(Closure , CallSite , Object , String , BindingFlags , Object , Object , Object )
   at System.Dynamic.UpdateDelegates.UpdateAndExecute6[T0,T1,T2,T3,T4,T5,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
   at CallSite.Target(Closure , CallSite , Object , String , BindingFlags , Object , Object , Object )
   at ArtOfTest.InternetExplorer.IECommandProcessor.InvokeFunction(String functionCall, Boolean useEval, Boolean returnJson, IHTMLDocument2 doc)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommandInternal(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.Core.Actions.InvokeScript(String script, Boolean refreshDom)
   at ArtOfTest.WebAii.ObjectModel.Element.GetValue[T](String propertyName, T defaultValue)
   at ArtOfTest.WebAii.ObjectModel.Element.GetValue[T](String propertyName)
   at ArtOfTest.WebAii.Controls.HtmlControls.HtmlRadioCheckboxControl.get_Checked()
   at ArtOfTest.WebAii.Controls.HtmlControls.HtmlRadioCheckboxControl.Check(Boolean isChecked)

Elena
Telerik team
 answered on 06 Nov 2019
3 answers
115 views

     Hello,

 

we are doing web testing using Telerik Test Studio. On our main test machine everything was working fine until recently. For no obvious reason Google Chrome stopped responding and can no longer be calibrated.

 

Clicking the "Calibrate" button just gives an entry into the log. The log from Test Runner shows this error:

Telerik.TestStudio.Scheduling.Client.exe(7412:15),TestStudio] ChromeConfiguration.GetBrowserConfigurationStatus() : Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.
Parameter name: input

 

We did not alter anything on the machine, there are scheduled runs on every hour. First few runs went through fine that day and then Chrome stopped responding. Any idea on how we can solve this?

 

Thank you, best regards.

Aleksandar

 

Elena
Telerik team
 answered on 04 Nov 2019
10 answers
161 views

I was trying to run a test to see the performance results when users log in to our University's portal and click on our Office 365 icon. However, I get an "Exception occurred waiting for the new browser to connect" error. I believe this is due to the fact that there are multiple redirects taking place once the icon is clicked and Test Studio can't capture each of them. These redirects are part of the process we have in place so that the user won't have to login to office 365 again. So is there anyway to capture multiple redirects? 

The test is basically as follows:

1. User navigates to our portal.

2. User enters their username and password

3. User signs in to Portal

4. User clicks on Office 365 icon.

5. Pop up window appears. (SSO and redirects occur in this step). 

6. User lands in Office 365 homepage

Elena
Telerik team
 answered on 31 Oct 2019
4 answers
137 views

Hi, After update Telerik to :Product version : 2019.3.1002.0

 

Web API project stop to work , get runtime error: (compile is OK )

13:53:21.594 [ERROR] Could not load file or assembly 'Telerik.ApiTesting.Framework, Version=2019.1.130.1044, Culture=neutral, PublicKeyToken=5a31053920bb0a73' or one of its dependencies. The system cannot find the file specified.

 

Plamen Mitrev
Telerik team
 answered on 30 Oct 2019
1 answer
159 views

If I have a coded sql query I want to run before a test and also use the returned values (ID and Company) to "dynamically" set the local data so that the test will run multiple iterations against the values

 

| ID | Company |

|1 | Disney|

|2| Google|

|3| Facebook|

Plamen Mitrev
Telerik team
 answered on 29 Oct 2019
2 answers
120 views

I have been having some issues with data driven tests in teststudio. One of the issues I have been having is that there does not appear to be any indication that a step is data driven if I give the step a custom name. I am not 100% sure if this is because of a bug, or because I am doing something wrong, but see screenshots. Does anyone have any advice on this issue?

 

The desired behavior from my perspective is to have the custom name be edited to have -datadriven [data column] when I edit it. It does seem like this sometimes happens, which is another reason I am confused... any advice is appreciated

Plamen Mitrev
Telerik team
 answered on 29 Oct 2019
3 answers
170 views

Hi All,

I have few Data-Driven test cases that I execute in quick execution and there are no problem with them. But when I create a test list that includes the same test cases, the test list execution failed and stopped unexpectedly.

1. The first case might be caused by the test list setting that I set which is UnexpectedDialogAction : HandleAndFailTest but the other iterations for the same test case don't have this problem. Furthermore, from the video and screenshot of the failed step , I don't see any Dialog box appeared. The failed step is after the browser navigate to a url link. You can refer from the picture "Case 1.png".

2. The second case is the execution stops unexpectedly without any specific error in the middle of the second iteration. The test list result came out as no test steps are executed and there is no iteration completed while actually the first iteration is completed. I can confirm the first iteration is completed because I checked with my AUT and the saved data is there from the first iteration. You can refer from the picture "Case 2.png".

Does anyone experienced this before?

Plamen Mitrev
Telerik team
 answered on 28 Oct 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?