UFT not opening all of my WPF application windows
Question ID: 107408

I have a WPF AUT with a PowerBuilder window and .NET window using SystemUtil.Run.

When I try to have my test open both using SystemUtil.Run, my PowerBuilder windows opens correctly, but my .NET window fails to open (and I receive an error yelling at me about a config file not found).

If I have UFT open by specifying the AUT in Record and Run Settings, it seems to work correctly, but I need my AUT to open from my script.

Any help would be greatly appreciated!

Marked as spam
Posted by (Questions: 424, Answers: 91)
Asked on January 26, 2017 1:09 pm
Answers (1)
Private answer

Maybe try to set your AUT's directory first in your script? Something like this:

Dim objWShell
Set objWShell = CreateObject(''WScript.Shell'')
objWShell.CurrentDirectory = ''''
objWShell.Run ''''

Marked as spam
Posted by (Questions: 0, Answers: 771)
Answered on January 26, 2017 1:11 pm
Well, I'll be! That worked!
( at January 26, 2017 1:11 pm)

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

Scroll to Top