Hi everyone. I have been doing some test automation on a Windows Forms applications. I created a script that worked fine, in which everything was added to the OR as SwfWindows/SwfButtons etc..
Out of sudden, the script stopped working. If I use the .net control spy on the app, everything is recognized as Windows/WinObjects. But if I try it on another .net App (while on the same test, without changing anything) everything is correctly identified as SwfWindows/SwfButtons etc.
An ideas, why this might have happened??
I´m using QTP 11, with the .net, web, and VB add-ins. I'm recording while on any open application and I have run the addFullTrust executable. I tried repairing, QTP and reinstalling .Net addin.
If I record right now, i get something like this:
Out of sudden, the script stopped working. If I use the .net control spy on the app, everything is recognized as Windows/WinObjects. But if I try it on another .net App (while on the same test, without changing anything) everything is correctly identified as SwfWindows/SwfButtons etc.
An ideas, why this might have happened??
I´m using QTP 11, with the .net, web, and VB add-ins. I'm recording while on any open application and I have run the addFullTrust executable. I tried repairing, QTP and reinstalling .Net addin.
If I record right now, i get something like this:
Code:
'' Windows forms App ONE
With Window("window")
.Activate
.WinObject("WindowsForms10.SysTabControl32").Click 110,14
End With
'' Windows forms App TWO
With SwfWindow("Demo").SwfWindow("DC")
.SwfRadioButton("Scheduled").Set
.Activate
End With