Hi,
I have a conversion problem:
In my application I have a 'System.Windows.Controls.TextBlock' type textblock and I need to find it in my coded step and make on it a MauseClick.
This is fragment of my code:
System.Windows.Controls.TextBlock textblock = app.MainWindow.Find.ByTextContent(text_content.ToString());
and in test log I have a information:
"Cannot implicitly convert type 'ArtOfTest.WebAii.Silverlight.FrameworkElement' to 'System.Windows.Controls.TextBlock'"
Is there a way to make that conversion or some other way to resolve this problem?Hello,
New to using this tool so this may be a bit complex. Currently I am trying to do some URL manipulation in order to get an access token so that I can then use the token to login a specific admin account.
The situation is that I go to a URL to get a access token which is returned as a JSON object. {"token":"00000000-0000-0000-0000-000000000000"} Is there a way that I can use regex as part of the extraction to take just the info between the second set of quotes? And then also take that extracted data and add that on to another data driven URL?
Hello,
we got serious problems with scheduled tests. We have a VM as a scheduling server and another VM as an execution server. All tests are working in our test studio and all VM's are alive. Everything is connected properly (we already checked the documentation).
Case 1: Remote connections to both VM's and the test studio are opened on my local pc. I start a test via remote. After a few seconds I can see how the browser opens on one of the VM (execution server). Everything works fine and the browser closes properly. The test report shows this, too.
Case 2: Remote connections to both VM's are disconnected on my local pc. I start a test via remote. Nothing happens. No confirmation about the test in the reports.
Case 3: Remote connections to both VM's and the test studio are opened on my local pc. I start a test via remote. After a few seconds I can see how the browser opens on one of the VM (execution server). Everything works fine and I disconnect the two VM's locally after half of the test steps. The test reports shows us that the test didn't run on after the disconnection of the two VM's.
Why? With this kind of problem it's impossible for us to automate the tests.
Could you help us?
Hello Test Studio team,
It has been a long while since I used Test Studio. Well the reason for this post is the request some assistance in load testing. I remember I did use load test functionality before.
So I already generate one user profile to use for the test and saw the traffic and adjusted the work load to accordingly.
I added my machine as the performance monitor.
In the available users, I put in Start test with 5 and end test with 50 concurrent users.
Ramp up user count for 2 minutes
Run test for 10 minutes.
I then click Run, I select average response time and current virtual users for overall test as the goals for the test.
But after all that, I am getting this message:
We are unable to run the test.
Please make sure that the controller you are using have enough Users allocated to run this test.
Then I click Manage, I see my machine as the scheduling service with 600 users as shown in screenshot.
As a perpetual license but expired, I thought the functionality would not be altered. Also I know that we are not going to renew our license / subscription.
http://www.telerik.com/purchase/license-agreement/teststudio
I do not understand what could be the problem.
Hi, I was having issues with the SaveFile dialog working against a WPF application (played around with the initialization value, but it just never handled the dialog). So I decided on writing a function I could call when I needed it, that would handle the same thing.
Below is what I'm currently using, I pass it a string for the file path, as well as an Element to be clicked on (which is what causes the save dialog to appear).
I've tried playing around with waiting before/after clicking on the element to cause the dialog, but it just doesn't seem to consistently handle. Most of the times it works fine, and sometimes I find myself needing to manually intervene and close/reopen the dialog before it starts handling it. Any idea what would cause this? I haven't done any major waits before/after. Would increasing the time before clicking on the element help at all?
// Create the dialog handler.
SaveAsDialog saveDlg = SaveAsDialog.CreateSaveAsDialog(Manager.Current.ActiveApplication,
DialogButton.SAVE, filePath);
// Add the save dialog handler to the monitor, and start the monitor.
Manager.Current.DialogMonitor.AddDialog(saveDlg);
Manager.Current.DialogMonitor.Start();
System.Threading.Thread.Sleep(1000);
// Click on the element passed in that will create the dialog.
element.User.Click();
System.Threading.Thread.Sleep(1000);
// Wait until the dialog is handled, and then stop the monitor and remove the dialog.
saveDlg.WaitUntilHandled(30000);
Manager.Current.DialogMonitor.Stop();
Manager.Current.DialogMonitor.RemoveDialog(saveDlg);
Good evening team,
Is it possible to select a file from a dialog box when we are running a web test? The scenario of this execution is when we click a field in a web browser, a windows dialog box pops out and we would need to input a path to a local folder and select a file(SelectFile.PNG).
But I'm unable to detect any element from this dialog box presuming this is because the test script is a web test and hence this limitation(do correct me if i'm wrong).
Is there any workaround or suggestion to this limitation?
Many many thanks!
Best Regards,
Pravin
praja@dongenergy.dk
Hi guys,
I'm having element not found issue during script execution (ElementNotFound.png)(ElementNotLog.png).This is happening even though the element is being able to be detected using the Edit Element feature (ElementDetected2.png) (ElementDetected.png).
The idea of this execution is to simply LeftDouble click on the field as shown in ElementDetected2.png.
Do help to advice,
Many thanks in advance (:
Pravin
praja@dongenergy.dk
Good Morning,
I am new to Test Studio and am unable to use the highlight element option when recording in Firefox and Chrome. IE is sketchy at best. When the button is selected the mouse starts randomly passing over every element and at that point I have to start the task manager and close the browser. I am running Win 10 1607 build 14393.693 and the latest version of Test studio 2017.1 I have been successful with one instance of IE 11. I must reboot my system in order to use the other browsers.
Not sure if this is even possible to do what I'm trying to accomplish.
Currently I have different databases that our application connects to for different scenarios. This is accomplished using a single test script for each database, with some coded steps to handle the change over.
In our test lists, each list starts with one of these tests. Is there a way to prevent any results from this test from being written out/added to the test list results file?
I'd be perfectly content with a coded solution if such a thing exists.
Hi guys,
Good day, have a question on Findings Page elements through coded steps. Hope you guys can assist me :)
I'm trying to locate an element in an IE web browser through coded step using Find.ByAttributes() without any luck.
These are the attributes i'm using to detect in my Find.ByAttributes() coded step :
1) TagName
2) InnerText
3) role
These are the code snippet that i'm using :
Element record = Find.ByAttributes("TagName=td","InnerText=~" + ((string)(System.Convert.ChangeType(Data["Name"], typeof(string)))), "role=gridcell");
Assert.IsNotNull(record, "Record not found.");
For InnerText attribute, i'm would like to read a partial value from an excel sheet (NameExcel.PNG) and i'm using "~" as based in the documentation,"~" signifies partial
Name.PNG is the element i'm looking to read in the browser
But every time i run the script, my Assert fails (ElementLog.PNG) which is weird because as you can see in (Element.PNG), the same attributes can be detected by Telerik if i recorded and use "Edit Element" option.
Another question is, will the below code snippet be able to click on the element once it's detected?
ActiveBrowser.Actions.Click(record);
The whole idea of this script is to detect the element that contains these attributes and click on it.
Many thanks in advance :)
Best Regards,
Pravin
praja@dongenergy.dk