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.
Hello Progress Support,
I wonder if we can have "Bind data" applied on the "String Length" in "Generate random string" step?
Thank you for your help.
Regards,
Lisa
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:
Expected: The compilation is successful.
Actual: The compilation fails with the mentioned error.
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
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;
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.
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: sourceDetails for the application shared internally!
Elements that are visible on the page cannot be directly located in the DOM. Even if find expressions are manually adjusted to match the correct elements, the steps fail to execute as expected because the elements are considered not visible.
Support for VS Community Edition
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!
Building the find expressions for elements in HTML during recording respects the Identification Logic: http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/project-settings/identification-logic.aspx That isn't the case when Test Studio builds chained expressions though (e.g. it cannot find an Id or Name to build direct expression thus locates a unique parent element to include in the find logic. http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/knowledge-base/project-configuration/usingchainedfindexpressions.aspx In this case TS respects the Id or Name only and not the rest of the attributes (including custom ones). It will be nice if the chained find expressions building algorithm is extended to respect the preset identification logic as well.
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:
Version 2023.3.1115.
Test list logging option is not saving log in specified location from test list settings.
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)Hi - I'd like the ability to add a step that validates the contents of a pdf doc. Is there a way that we can add this functionality out of the box?