Problem with Psexec + Ranorex

Experiences, small talk, and other automation gossip.
User avatar
artur_gadomski
Posts: 207
Joined: Mon Jul 19, 2010 6:55 am
Location: Copenhagen, Denmark
Contact:

Problem with Psexec + Ranorex

Post by artur_gadomski » Mon Jul 30, 2012 8:25 am

Hi.
I have a problem with Ranorex, where it stops detecting controls when run through Psexec. Did any of you come across similar issue?
My setup
Fully coded test installs our AUT, runs a bunch of tests on it and then uninstalls it. Everything runs fine when run locally but when running through Psexec uninstallation dialog is not recognized. Uninstallation dialog shares some components with installer, these are recognized fine when installing and not when uninstalling.
My psexec command
psexec.exe \\dkvm-mercury-10 -accepteula -w "C:\RunDir" -u domain\test -p test. -i -h C:\RunDir\SmokeTester.exe -p=xpe
Attached are two snapshots. One of installer dialog made during installation and the other one during uninstallation made during the same run.
Any help with this would be appreciated.
Attachments
Uninstallation_BAD.rxsnp
(333.2 KiB) Downloaded 274 times
Installation_GOOD.rxsnp
(506.31 KiB) Downloaded 274 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Problem with Psexec + Ranorex

Post by Support Team » Mon Jul 30, 2012 12:19 pm

Hi,
Uninstallation dialog shares some components with installer, these are recognized fine when installing and not when uninstalling.
RxPaths of e.g. the "Continue" buttons of installation/uninstallation are NOT the same. They also do not have the same attributes.

Are you able to highlight the repository-elements for uninstallation? What does the path look like (locally/with rsexec)?

Please make sure that the path is the correct one for each of the elements for installation as well as for uninstallation.

Kind Regards,
Larissa
Ranorex Support Team
.
Image

User avatar
artur_gadomski
Posts: 207
Joined: Mon Jul 19, 2010 6:55 am
Location: Copenhagen, Denmark
Contact:

Re: Problem with Psexec + Ranorex

Post by artur_gadomski » Mon Jul 30, 2012 12:26 pm

Snapshot made during unistallation is what my tests 'sees' when running through Psexec. When starting spy or running tests locally paths are the same (containers and button instead of elements) and can be highlighted.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Problem with Psexec + Ranorex

Post by Support Team » Tue Jul 31, 2012 12:51 pm

Hi,

Do you get report messages which provide any information about this behavior (try to turn report-level to debug). How is your installation and uninstallation started (e.g. start application or mouseclick)? If they are not started the same way, this behavior may be the consequence.

Regards,
Larissa
Ranorex Support Team
.
Image

User avatar
artur_gadomski
Posts: 207
Joined: Mon Jul 19, 2010 6:55 am
Location: Copenhagen, Denmark
Contact:

Re: Problem with Psexec + Ranorex

Post by artur_gadomski » Wed Aug 01, 2012 10:12 am

No helpful messages in report. We always run with debug level, but all tests are coded from scratch so besides a few warning we control everything that gets into report.

Install is started by Process.Start from C#.
Uninstall is started through Programs and Features window in windows.

I'll see if running Uninstall through Process.Start helps.