Installer Tests

Ask general questions here.
rsudhak
Posts: 118
Joined: Fri Jan 04, 2019 1:38 pm

Installer Tests

Post by rsudhak » Fri May 29, 2020 5:24 pm

Hi All,
Has anyone tried automating installer testing using Ranorex? IF so can you give me some idea
Thanks,
Rajee

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 6163
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Installer Tests

Post by odklizec » Sun May 31, 2020 3:24 pm

Hi,

What exactly do you want to test? Please provide us with more details about your problem.

SW installers are desktop apps like any others. So if you want to go trough all installation steps, simply do it as with any other desktop app. You can use either recordings or code modules, to achieve your goal.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

User avatar
Stub
Posts: 371
Joined: Fri Jul 15, 2016 1:35 pm

Re: Installer Tests

Post by Stub » Mon Jun 01, 2020 8:20 am

Our automated build/test process uses Ranorex to guide the application through its installer. It also uninstalls the application as well. It doesn't thoroughly 'test' the installer as such, it just lightly exercises it during a test run to make sure it works as expected.

rsudhak
Posts: 118
Joined: Fri Jan 04, 2019 1:38 pm

Re: Installer Tests

Post by rsudhak » Mon Jun 01, 2020 9:31 am

I can specify the steps exactly:
On a VM(VM Ware) 1 :
1. we have to revert VM snapshot to a snapshot where we have the released version of the software installed
2. run the patch for the installer
3. copy the folder to a shared drive or push it to git(to speed up the copying process)

On a VM(VM Ware) 2 :
1. we have to revert VM snapshot to a snapshot where the software is not installed at all
2. run the complete installer
4. Compare the folders and files installed in VM 1 (step 3)

**********
If we are not using the VM..... we have to do everything in a single machine
1. install released version of the software
2. install the patch and copy it to a location as expected values
3. uninstall the software completely from COntrol Panel > Remove Programs)
4. now install the new installer
5. copy the files as actual
6. compare step 2 files and step 5 files - should match

Thanks,
Rajee

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 6163
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Installer Tests

Post by odklizec » Mon Jun 01, 2020 9:49 am

Hi,

I'm afraid that performing such test on two separate VMs and compare folders in each other VM, will be too difficult with Ranorex. You see, this would require running two instances of Ranorex test on two separate machines and it may be difficult to synchronize them. There is no "out of the box" solution for this in Ranorex. BTW, most of the the steps (VM snapshot handling or copying files) would be best to do via continuous integration system, for example Jenkins. At least I'm doing all WM configuration steps and copying files/folders via Jenkins job.

In fact, unless you specifically want to perform installation steps like human (i.e. via Ranorex clicks), you may be able to achieve entire scenario with just CI steps and no Ranorex steps may be required? Of course, it would require extensive use of command line (for copying files/folder or running installer from command line) and a 3rd party tool for comparing folders (with command line support).
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration