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
Generic Test on Oracle Virtualbox
Re: Generic Test on Oracle Virtualbox
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:)
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.
I hope this helps!
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:)']
I hope this helps!
You do not have the required permissions to view the files attached to this post.
Re: Generic Test on Oracle Virtualbox
I didn't know that, it will surely help
Thank you !
Thank you !