Page 1 of 1

Generic Test on Oracle Virtualbox

Posted: Tue Jul 03, 2018 11:20 am
by JorisS
Hello,

I have been digging a bit but cannot find a solution for my problem.
I am trying to create a simple test that:
- Go through folders: Z:\afolder\anotherone\
- Click to create a text file, write in it, save it, delete it

The test is created on a Windows 7 host and should be executed on a VM Windows 10
I think my problem is that the two disks Z: are not named the same (LocalDisk on W7 and vboxsvr on W10), Ranorex doesn't find the only folder there is.

Can someone help me ?

I'm running Ranorex 6.0

Best Regards

Re: Generic Test on Oracle Virtualbox

Posted: Tue Jul 03, 2018 7:33 pm
by N612
Explorer in Windows 7 and Windows 10 have a lot of differences which will require different RxPaths. However, a simple or in the RxPath will let you create a single repository object that works in both versions of Windows. Check out the sample below.

Windows 7 Machine: Form Title = "Computer"; Drive = "Windows 7" (C:)
Windows 10 Machine: Explorer Title = "This PC"; Drive = "Local Disk" (C:)

Code: Select all

/form[@title='Computer' or @title='This PC']//listitem[@name='Windows 7 (C:)' or @name='Local Disk (C:)']
Another option: make the file path to the desired folder an environmental variable. Then you can use a standard run application action to open the folder directly in both environments.
1.png
I hope this helps!

Re: Generic Test on Oracle Virtualbox

Posted: Wed Jul 04, 2018 4:29 pm
by JorisS
I didn't know that, it will surely help

Thank you !