Hello,
I'm currently using Test Studio Version 2016.3.928.0 to test an ASP.NET Web Application. My test goes to my published application and a prompt is immediately prompted when the URL is hit to get the user's username and password. In Chrome, Edge, and Firefox the test runs fine when I do a navigation step and then deal with the dialog in the next step. In IE (version: 11.1770.14393.0), however, the test fails at the navigation step with the following information in the log:
Overall Result: Fail
------------------------------------------------------------
'10/11/2017 6:43:31 PM' - Executing test: 'Internet Explorer', path: 'Internet Explorer.tstest.'
'10/11/2017 6:43:31 PM' - Using .Net Runtime version: '4.0.30319.42000' for test execution. Build version is '2016.3.928.0'.
------------------------------------------------------------
------------------------------------------------------------
'10/11/2017 6:43:33 PM' - Using 'InternetExplorer' version '11.0' as default browser.
'10/11/2017 6:43:34 PM' - LOG: Unexpected dialog encountered. Taking no action.
'10/11/2017 6:44:34 PM' - 'Fail' : 1. Navigate '/'
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Wait for condition has timed out
InnerException:
System.TimeoutException: Wait for condition has timed out
at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target)
at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
at ArtOfTest.WebAii.Core.Browser.WaitUntilReady()
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request)
at ArtOfTest.WebAii.Core.Browser.InternalNavigateTo(Uri uri, Boolean useDecodedUrl)
at ArtOfTest.WebAii.Core.Browser.NavigateTo(Uri uri, Boolean useDecodedUrl)
at ArtOfTest.WebAii.Core.Browser.NavigateTo(String url, Boolean useDecodedUrl)
at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.NavigateToActionDescriptor.Execute(Browser browser)
at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
------------------------------------------------------------
'10/11/2017 6:44:34 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
'10/11/2017 6:44:34 PM' - Overall Result: Fail
'10/11/2017 6:44:34 PM' - Duration: [1 min: 0 sec: 296 msec]
------------------------------------------------------------
'10/11/2017 6:44:57 PM' - Test completed!
I see that it detected the logon dialog, but it says it's timed out waiting for a condition. I'm not sure what condition it's expecting to since it did go to the proper URL. Nor am I sure how to find a workaround. In the other browsers I just set the BaseURL to my application URL and did the NavigationURL as '/' and the step didn't fail in the other browsers, but it still fails in IE. I've recalibrated my browser and ran updates on Windows 10 and it hasn't had any impact on this error.
Thanks,
Jessica
Hi
We are using Telerik test framework for our application to perform Ui test. We would like to automate these tests in our CI Pipline. Currently we use Bamboo for this purpose but want to switch to GitLab. Therefore I wanted to ask if there is also a possibility to make the integartion with Gitlab and if there are possibly plugins available?
thanks in advance
Best regards
Marco
Hi,
In a web test I need to click an element defined by Xpath in a Coded Step:
* I need to do it in a coded step because I need some logic (while loop with try-catch)
* I need an xpath because it is best practice and more stable than any element definition auto-generated by Telerik
Here is my snippet:
int i = 1;
Element e = Find.ByXPath("(//i[@class=\"dx-icon dx-icon-close\"])[" + i.ToString() + "]");
Actions.Click(e);
Log:
InnerException:
System.ArgumentNullException: The target Element object passed in for this action is null. Action aborted. Possible causes to this exception is the element not present in the page markup and the Find.Byxx returning null.
Parametername: TargetElement
bei ArtOfTest.WebAii.Core.Actions.ValidateTargetElement(Element targetElement)
bei ArtOfTest.WebAii.Core.Actions.Click(Element targetElement)
bei TestProject6.Login.Login_Schließe_Alle_Tabs_In_MDE() in c:\Dev\TestAutomation\Testfälle\Schritte\Login.tstest.cs:Zeile 66.
When I pause the test execution before executing the code, open the Developer tools and search for the xpath in the DOM, I find the desired result. So I wonder why the element seems to be null.
Hey guys,
So I am doing a Load Test and I see you can dynamically assign dynamic Targets
In my case this is sessionIDs from a .csv file I Bound to the test already.
This is working good so far, SessionIDs are replaced in the Request Headers succesfully.
BUT:
There are instances where we send the sessionID in the Request Body, instead. I see I can manually edit the Post Data in the "Edit User Profile" popup, but I would like to make it dynamically choose a sessionID from my .csv file
I also tried adding a Custom Dynamic Target until I realized These affect Response(!) Body rather than Request(!) Body.
So my Question is:
Is there a way to tell TestStudio to dynamically replace Values in the Request Body?
Plus is there an easy way to bulk-do it or globally Change it? Because I would like to avoid doing this hundreds of times over.
Thanks and Kind regard
Ben
Hello,
I can't re-activate the licence of Test Studio 2017 even if a seat is available.
It was working before this month.
Any help or information is welcome.
Best regards.
Hello.
I need to verify that multiple elements in a WPF app are highlighted when the mouse hovers a specific WPF element. Typically, when in test recording mode, you can easily right click the element to bring up the Test Studio functions to create an image verification step of the selected element. The problem is that when I hover the element and go to right-click to capture the image of the hovered element states, the right-click removes the mouse hover applied to the element that leads to the other elements being highlighted.
I read some other Test Studio documentation and I saw that you can upload images for use in the image verification step. The thought was that we could make our own screen grab of the desired state and upload the image file into the image verification step. The issue is that this piece of documentation is recording for a web application but my colleague and I don't have the same image preview options in our Test Studio desktop (2020.3) or VS plugin as shown in the url below. https://docs.telerik.com/devtools/teststudiodev/features/recorder/verifications/image-verification
Would someone be able to help determine how we could ensure that select WPF elements become highlighted when the mouse hovers a respective WPF element? Is this something we should consider making a coded step for?
Thank you.
Hi,
I've recorderd a test that selects a day in a personel plannings system. The day selected is the 5th of January by clicking on a timeblock/day in the planning application. But when I run the test today or yesterday or tomorrow the exact same day, January 5 is selected.
I want the test to select the current day every time it runs. So when I run the test on February 7 it should select February 7. But when I run the test on April 14 it should select April 14.
How can I adjust the test step so that I can run the test every day with selecting the current day?
Hi,
I want to execute the loop pictured in attachment "loop.png". Both the loop and the "Click"-command are marked as "Continue on Failure".
The button that is supposed to be clicked is the button to close a tab on the website. The loop is supposed to close all tabs. Hence, the loop is expected to have failed executions if there are less than 10 tabs open. As the step is marked as "Continue on Failure" I would assume that the test execution is not failing if these steps are failing.
When I execute the test, the loop will close all tabs on the website. Some loop iterations will fail as there are no more tabs to close. When the loop is being executed for the 10th time, the test fails. The log is attached: log.zip.
What optiosn do I need to enable to make sure that failed command executions do not result in a failed test?
Hi,
We are experiencing random failures in our current suite of smoke tests that we run against our application. They are usually very stable however, we have recently implemented a service worker on the application and now the tests are failing.
The test step that is failing is a simple click a button and then verify that a div is displayed. We have tested the changes manually and there are no issues with the changes.
We then reverted the build of our application to exclude the service worker change and all tests ran successfully.
Has anyone experienced this issue related to service workers and Telerik failures before?