Unplanned
Last Updated: 21 May 2024 09:03 by William

A click step might throw ArgumentNullException when executed against a pop up that is in the process of being opened.

Details:

Exception 'System.ArgumentNullException: Value cannot be null.

Parameter name: source
   at System.Linq.Enumerable.Where[TSource](IEnumerable`1 source, Func`2 predicate)
   at ArtOfTest.WebAii.DesktopAutomation.DesktopFind.GatherResultsFromXPathSearch(String xPath, Int32 maxDepth, DesktopFindExpressionGroup group, List`1 roots, List`1 results)
   at ArtOfTest.WebAii.DesktopAutomation.DesktopFind.<>c__DisplayClass26_0.<AllByExpression>b__0()
   at ArtOfTest.WebAii.DesktopAutomation.DesktopFind.RetryIfNullOrEmpty[T](Int32 retries, Int32 retryDelay, Func`1 findFunc)
   at ArtOfTest.WebAii.DesktopAutomation.DesktopFind.AllByExpression(DesktopFindExpression expression, Int32 maxDepth, Int32 maxRetries, Int32 retryDelay)
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.FindElementInternal(IAutomationHost targetHost, FindExpressionElement expression, Region region, String& error)
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.FindTargets(IAutomationHost targetHost, AutomationDescriptor baseDescriptor)
In Development
Last Updated: 14 May 2024 13:45 by ADMIN

Steps to reproduce:

1. Add the following line in coded step 

ActiveBrowser.Desktop.KeyBoard.KeyPress(System.Windows.Forms.Keys.Alt);

2. Execute the test in extensionless/headless mode

Expected: Test should pass
Actual: Test fails and the following error is thrown in the log:

ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
InError set by the client. Client Error:
Protocol error (Input.dispatchKeyEvent): Invalid 'text' parameter
BrowserCommand (Type:'Action',Info:'NotSet',Action:'RealKeyboardAction',Target:'null',Data:'keyDown#$TS$#LMenu',ClientId:'59E9D6A07CE0CD30467ED59AEC375281',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'Protocol error (Input.dispatchKeyEvent): Invalid 'text' parameter')
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.Headless.HeadlessKeyboard.PressOrReleaseKey(Keys key, Boolean release)
   at ArtOfTest.WebAii.Win32.KeyBoard.KeyDown(Keys code, Boolean delay)
   at ArtOfTest.WebAii.Win32.KeyBoard.KeyPress(Keys code)
   at Regressuib2024R2.Alt.Alt_CodedStep() in C:\Users\ittodorov\Documents\Test Studio Projects\Regressuib2024R2\Alt.tstest.cs:line 57

In Development
Last Updated: 10 May 2024 13:34 by ADMIN

Using the default Startup Args when configuring WPF test are not applied correctly. 

The workaround is to use the startup arguments set for each test configuration. 

In Development
Last Updated: 02 May 2024 11:36 by ADMIN

For a specific page (shared internally)

1.Record a navigate step
2. Execute the recorded test in headless/extensionless

Expected: The test should pass
Actual: The navigate step fails and the following exception is thrown in the log:

Failure Information:
~~~~~~~~~~~~~~~
ExecuteCommand failed!
BrowserCommand (Type:'Information',Info:'IsReady',Action:'NotSet',Target:'null',Data:'',ClientId:'8DBC801FE56B61C67C029E52C7448B0C',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'False',Response:'')
InnerException: System.TimeoutException: Timed out waiting for command to be handled
   at ArtOfTest.WebAii.Messaging.Process.BrowserHostsProxyRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId, Int32 timeout)
   at ArtOfTest.WebAii.Messaging.Process.BrowserHostsProxyRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)

Workaround: Use a coded step to increase the ExecuteCommandTimeout like this: 

 Manager.Settings.ExecuteCommandTimeout=120000;

Unplanned
Last Updated: 24 Apr 2024 11:33 by Marek

There is a dialogbox in WPF app to which the recorder toolbar gets attached. When the highlighting is enabled for this window no of the elements get highlighted.

The workaround is to use the DOM explorer tab in the Advanced Recording Tools to locate the desired element and build the desired step that way. 

Details for the dialogbox and app shared internally! 

Need More Info
Last Updated: 19 Apr 2024 09:31 by ADMIN

We've posted about this before, tickets and forum.

https://www.telerik.com/account/support-center/view-ticket/1621768

https://www.telerik.com/forums/telerik-test-studio-test-list-run-from-azure-pipeline-fails-when-triggered-by-a-build-completion-of-another-project

Attached is the log of a different failed scenario. Unlike ticket 1621768, there is no execution delay (hardcoded) before the error. To be sure, we get what seems to be random failed tests that run successful more often than not in most prior runs. What seems constant is that our test lists will encounter errors in an automated Azure pipeline run (if we then run that same pipeline manually, it's usually successful).

Is there something we can do to the environment that we are running the test lists, the settings or something of that nature? Maybe some way to "prime" the environment?

Note, our license is under bwhite@mlhc.com

Completed
Last Updated: 15 Apr 2024 13:41 by ADMIN
When trying to connect to Git repo in Azure DevOps the connection is reported successful. Then, however, all supported commands are not performed as expected. The message in SourceControl output is: too many redirects or authentication replays. 
In Development
Last Updated: 05 Apr 2024 12:55 by ADMIN

Error upon compilation is related to the Pages.g.cs file where all elements are listed with their find expression. 

12:38:44 'ERROR' > C:\Users\dpruteanu\Test Studio Projects\After_reinstall_3-27-24\Pages.g.cs(229,108) : error CS1003: Syntax error, ',' expected

Steps to reproduce: 

  1. Testing WPF app which has quotation mark in the name of the window.
  2. Record some steps for a scenario.
  3. Convert any step to code, or insert a coded step.
  4. Compile the project.

Expected: The compilation is successful.
Actual: The compilation fails with the mentioned error. 

Unplanned
Last Updated: 20 Mar 2024 16:08 by Tomáš

Although the actual image files are with good resolution and are smooth, when displayed in the Failure Details Images tab they are blurry. 

It will be great to display the images better. 

In Development
Last Updated: 20 Mar 2024 13:06 by ADMIN

 public static DesktopFind WaitForDesktopAppWindow(DesktopApplication desktopApp, string strWindowsName)
        {
      return desktopApp.WaitForWindow(strWindowsName, delay, 60000).Find; //with a delay of 700

}

fails if COMException is thrown.

Expected is to handle that exception and wait for the set timeout. 

Completed
Last Updated: 15 Mar 2024 09:33 by ADMIN

When generating chained find expressions Test Studio always uses the id tribute for the parent element and it doesn't take into account the actual order of attributes.

Then, if you completely remove the id from the find logic list settings, the generated find expression uses only TagIndex for the target element and no chained find expression. 

Generating this type of expressions need to be revised. 

Example shared internally!

Completed
Last Updated: 15 Mar 2024 09:25 by ADMIN

Download dialog which is triggered from a new tab fails to be handled when running a test in Edge and Chrome extensionless mode. 

Such download dialog is usually triggered with a link similar to this: 

<a href="100MB.zip" target="_blank">Link to donwload</a>

The download dialog looks like this: 

Completed
Last Updated: 01 Mar 2024 11:09 by ADMIN

Version 2023.3.1115.

Test list logging option is not saving log in specified location from test list settings. 

 

Unplanned
Last Updated: 02 Feb 2024 12:38 by Software

Steps to reproduce: 

  1. Create a sub-folder in the project root to store the custom dlls needed for the project. 
  2. Add references to these into the Project settings.

Expected: The references are added with relative path starting under the project root.

Actual:  The project root is included in the relative path.

Won't Fix
Last Updated: 30 Jan 2024 15:29 by ADMIN

When sorting tests from the test list result panel, the same sorting is applied to the steps in every test from the test list when drilled down. 

Completed
Last Updated: 18 Jan 2024 09:12 by ADMIN

In a project which is not connected to a Scheduling service create a scheduled test list run recurring for the "1st Monday of each Month" with no end dates. This automatically switches to the Results tab but it freezes and you can only exit Test Studio. 

Error in log is as follows:

[12/13 14:02:00,Telerik.TestStudio.exe(12028:34),Error] App.LogUnhandledException() : EXCEPTION! (see below)
     Situation: Unhandled exception!
     Outer Exception Type: System.ArgumentOutOfRangeException
     Message: The added or subtracted value results in an un-representable DateTime.
          Parameter name: value
     HRESULT: 0x80131502 (Official ID (if app.) = COR_E_ARGUMENTOUTOFRANGE, Error Bit = FAILED, Facility = FACILITY_URT, Code = 5378)
     Call Stack:
          at System.DateTime.AddTicks(Int64 value)
Need More Info
Last Updated: 15 Jan 2024 15:51 by ADMIN
Created by: Björn
Comments: 1
Type: Bug Report
0

When i try to select "Today" and we are using Blazor - TelerikDatePicker it works correct localy, but if i try to run the list remotely it fails and the following failure information is given: 

ArtOfTest.Common.Design.Exceptions.ExecutionException: ExecuteCommand failed!
InError set by the client. Client Error:
Evaluation failed: TypeError: Cannot read properties of undefined (reading 'attributes')
    at eval (eval at <anonymous> (:1:35), <anonymous>:1:79)
    at eval (<anonymous>)
    at __puppeteer_evaluation_script__:1:35
    at __puppeteer_evaluation_script__:1:210
BrowserCommand (Type:'Action',Info:'NotSet',Action:'InvokeJsFunction',Target:'ElementId (tagName: '',occurrenceIndex: '-1')',Data:'TelerikBlazor._instances['8e58978c-274d-4d10-8306-e5524fa8536d'].popupElement.attributes['data-id'].value',ClientId:'2E756E6DAEB47916B352F6434B5307BA',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'Evaluation failed: TypeError: Cannot read properties of undefined (reading 'attributes')
    at eval (eval at <anonymous> (:1:35), <anonymous>:1:79)
    at eval (<anonymous>)
    at __puppeteer_evaluation_script__:1:35
    at __puppeteer_evaluation_script__:1:210')
InnerException: none.

I have the same problem if i insted trying to type a date in the input field, works localy and fails remotly.

The failure is this time described as follows:

ArtOfTest.Common.Design.Exceptions.ExecutionException: Value cannot be null.
Parameter name: input
Duplicated
Last Updated: 15 Jan 2024 15:48 by ADMIN
Created by: Björn
Comments: 0
Type: Bug Report
0

Fails to run testlist remotly with Blazor TelerikDatePicker.

Using the calender and select "Today" gives following failure:

ArtOfTest.Common.Design.Exceptions.ExecutionException: ExecuteCommand failed!
InError set by the client. Client Error:
Evaluation failed: TypeError: Cannot read properties of undefined (reading 'attributes')
    at eval (eval at <anonymous> (:1:35), <anonymous>:1:79)
    at eval (<anonymous>)
    at __puppeteer_evaluation_script__:1:35
    at __puppeteer_evaluation_script__:1:210
BrowserCommand (Type:'Action',Info:'NotSet',Action:'InvokeJsFunction',Target:'ElementId (tagName: '',occurrenceIndex: '-1')',Data:'TelerikBlazor._instances['8e58978c-274d-4d10-8306-e5524fa8536d'].popupElement.attributes['data-id'].value',ClientId:'2E756E6DAEB47916B352F6434B5307BA',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'Evaluation failed: TypeError: Cannot read properties of undefined (reading 'attributes')
    at eval (eval at <anonymous> (:1:35), <anonymous>:1:79)
    at eval (<anonymous>)
    at __puppeteer_evaluation_script__:1:35
    at __puppeteer_evaluation_script__:1:210')
InnerException: none.

Using the input field and typing a date, gives the following failure

ArtOfTest.Common.Design.Exceptions.ExecutionException: Value cannot be null.
Parameter name: input

The cases works if they a executed localy.

Declined
Last Updated: 08 Jan 2024 08:13 by ADMIN

We have a large PDF (60+ pages) and try to verify certain content on specific pages. During the recording process some elements are captured with TagName and TextContent and others with TagIndex. In this scenario TagIndex is not reliably, because the document is large and the elements change dynamicaly.

One solution is to update the element's find logic manually on all elements that use TagIndex, but this is very time consuming. 

Another option is to use coded step to find the target element by TextContent and verify it.

Declined
Last Updated: 08 Jan 2024 08:10 by ADMIN

We are trying to record mobile web tests, but after visiting the first page the device gets disconnected.
A loading screen appears in the DOM explorer, but after a while it stops without recording the second page.

The switching between pages is with normal anchors on the website.

This happens on certain pages with large DOM size.

1 2 3 4 5 6