Generic Test on Oracle Virtualbox

Ask general questions here.
JorisS
Posts: 15
Joined: Wed Nov 22, 2017 11:30 am

Generic Test on Oracle Virtualbox

Post by JorisS » Tue Jul 03, 2018 11:20 am

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

User avatar
N612
Posts: 135
Joined: Mon Jul 11, 2016 4:01 pm

Re: Generic Test on Oracle Virtualbox

Post by N612 » Tue Jul 03, 2018 7:33 pm

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!
You do not have the required permissions to view the files attached to this post.

JorisS
Posts: 15
Joined: Wed Nov 22, 2017 11:30 am

Re: Generic Test on Oracle Virtualbox

Post by JorisS » Wed Jul 04, 2018 4:29 pm

I didn't know that, it will surely help

Thank you !