Telerik Forums
Test Studio Forum
4 answers
114 views

Hi all,

 

I'm looking for advice on a coded step.

 

We have a WPF application which uses System.Windows.Controls.ListView as well as Telerik controls. I have a ListView with a specific name and I'd like to locate and cast it from the running app, so that I can then iterate through the ListItems within it.

 

I had assumed that I could use something similar to:

 


public void Survey_Control_Readonly_Switcher_CodedStep()
        {
            WpfApplication app = Manager.ActiveApplication;
            Assert.IsNotNull(app);
            
            System.Windows.Controls.ListView list = app.MainWindow.Find.ByName<System.Windows.Controls.ListView>("DisplayFieldItems");
            Assert.IsNotNull(list);
            
            foreach <etc....>
       }

 

But this does not seem to work, where it does if I use it with (e.g.):


Telerik.WebAii.Controls.Xaml.Wpf.RadGridView grid = app.MainWindow.Find.ByName<Telerik.WebAii.Controls.Xaml.Wpf.RadGridView>("ScriptGrid");

 

Does anyone have any pointers? I've gone through the code examples but not found anything relevant. I do have the correct assemblies loaded and called.

Lawrence
Top achievements
Rank 1
Iron
 answered on 15 Aug 2024
0 answers
143 views

Hello Everyone,

Does anyone know where I can download trx2html from?  I found a link in Telerik but the link is broken.  I'm trying to convert my *.trx load test results to html.  Or, if someone knows about a better way to do this conversion please share.

 

Thank you for your help.

 

Maria

Maria
Top achievements
Rank 1
Iron
Iron
 asked on 15 Jul 2024
1 answer
110 views
Hello!

While running Test lists (either through the application or using an agent from TeamCity), it would randomly stop, showing this in the logs from the agent:

"Unhandled exception: System.AccessViolationException: Attempted to read or write protected memory. Process exited with code -1073740771."

Also, the Windows Event Viewer shows the following entry:

Faulting application name: ArtOfTest.Runner.exe, version: 2023.3.1115.3, time stamp: 0x65546b19
Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc000041d
Fault offset: 0x0139f189
Faulting process id: 0x8978
Faulting application start time: 0x1DACE12D5A2F70D
Faulting application path: C:\Users\{user}\Telerik\Bin\ArtOfTest.Runner.exe
Faulting module path: unknown
Report Id: 184dfe1c-35a2-46ca-990d-da43a5617fd3
Faulting package full name: 
Faulting package-relative application ID: 

Updating the application didn't help. Tested it on two different machines (both running Windows 11), and it happened on both. Any help is appreciated.
Tsvetko
Telerik team
 answered on 11 Jul 2024
1 answer
107 views

Hi Team, 

I setup docker in windows server 2019 machine, and start one docker container with image windowsservercore 2019 ,and run telerik ui case in the container with chromeheadless, below error pops:

From this document, seems telerik support docker, https://docs.telerik.com/teststudio/advanced-topics/build-server/docker-container-testing

Can you please given any suggestion about this, I have run the case from command line in docker not know why no-interactive pops. Not sure it's related to the image I use or other setting about docker.

Thanks,

Jun

Elena
Telerik team
 answered on 04 Jul 2024
2 answers
95 views

Hello,

 

I'm trying to verify that a password displays as masked (just a bunch of dots) on a web page.  Is there a way I can do this validation using Telerik?

 

Thank you and look forward to your response.

Maria
Top achievements
Rank 1
Iron
Iron
 answered on 28 May 2024
0 answers
78 views

HI!

I am having trouble recording actions in a pop-up window for a windows application. The pop-up window is launched during execution when the user clicks a button. During recording the steps seem to be recorded properly, but when executing the test an element not found error occurs. The window doesn't seem to appear in the images of the fail report and the elements of the pop-up window don't seem to be found in the DOM explorer. The window also doesn't seem to be launched as a separate process. If it helps I think the application that I'm testing is very old or parts of it are running very old code (possibly VB6). I'm not sure if this error is due to compatibility or if I am missing a simple step. I was wondering if anyone knew how to fix this. If more details are needed let me know. Thank you so much!

William
Top achievements
Rank 1
 asked on 16 May 2024
1 answer
201 views

Hello,

I've recently started doing API testing and I wanted to start with the sample project. While this has helped get upper-level picture of how the project should be set up, I noticed the base-url is set up to localhost:5000 thus when I try to run the API test it fails to connect and authenticate. I was also wondering if there was more documentation on the way to parse the JSONPath body response? In a few of the tests I see it reference value and count, but when I try to do that in my project I don't think I'm accessing my return body correctly. Is there any Swagger documentation that shows what the sample project is referencing?

Thanks in advance,

Jessica 

Elena
Telerik team
 answered on 25 Apr 2024
3 answers
114 views

 I have this import in my test studio project in visual studio <Import Project="$(MSBuildExtensionsPath)\Telerik\WebUITestStudio\Telerik.WebUITestStudio.targets" />

If i build it on my machine in visual studio it works.

 

I created an agend on my machine for azure devops pipeline and there it shows me an error in the build process task:

 

the whole error: 

##[error]Selmo.Studio.Ui.Automated.Tests\Selmo.Studio.Ui.Automated.Tests.csproj(121,3): Error MSB4019: The imported project "C:\Users\DanCostea\Desktop\BA1\_work\_tool\dotnet\sdk\6.0.420\Telerik\WebUITestStudio\Telerik.WebUITestStudio.targets" was not found. Confirm that the expression in the Import declaration "C:\Users\DanCostea\Desktop\BA1\_work\_tool\dotnet\sdk\6.0.420\\Telerik\WebUITestStudio\Telerik.WebUITestStudio.targets" is correct, and that the file exists on disk.

it seems that i doesnt look in my machines C:\Program Files (x86)\MSBuild\Telerik\WebUITestStudio\Telerik.WebUITestStudio.targets

but it tries to look in the agents folders.

I dont how to get around this issue.

I thought if i run the agent on my pc and test studio ultimate is installed there will be no problems

Elena
Telerik team
 answered on 11 Apr 2024
4 answers
200 views
Hi There,

I've just installed the trial version and trying to record/playback a WPF script. The WPF application path contains the build version number which can change hourly in our Test environment. When I try to record/playback, I can only launch the application until a new version is built then of course the path name changes. Is there any way I can get around this within Test Studio and parametrize the application path name?
Dan
Top achievements
Rank 1
Iron
Iron
 answered on 10 Apr 2024
1 answer
115 views

Hello Telerik Team,

 

I'm currently automating a script for a web based application that shows a Javascript alert as soon as Save is clicked in the application.  However, the Telerik recorder is not able to capture it but I need to be able to accept the alert (click OK) in order to continue to the next step.  Does Telerik support this type of scenario?

Thank you and look forward to your response.

Maria

Shtilianov
Telerik team
 answered on 02 Apr 2024
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?