MongoDB is a third party tool used by Test Studio to store the project files required for scheduling tests on remote machines. We strive to keep this working out of the box, though there are upgrades of the Mongo, which affect the database used by Test Studio.
If you upgrade an existing MongoDB installation with version lower than 3.6 to MongoDB with version 4.0 or higher you may experience problems with starting MongoDB service and this not being able to use Test Studio Scheduling feature. The behavior is expected and is not Test Studio related. The official Mongo upgrade procedure can be found here.
What we found working quite well for us is to backup your existing database and then restore it.
1. Stop the MongoDB Service
Open the Windows services and manually stop the MongoDB service.
2. Delete the MongoDB Windows Service
Start a Command Prompt as Administrator and type the following command:
sc delete MongoDB
3. Backup the Database
Start a Command Prompt as Administrator and change the directory to the bin/ folder in the 3.x MongoDB installation directory. Run the following command:
mongodump --db TSStorageData
The result is a dump/ folder where the command is run, which contains the dump of the TSStorageData database.
4. Restore the Database
Once the backup is ready, start with install of 4.x MongoDB server. Then copy dump/ folder to the bin/ in installation folder of the 4.x MongoDB server. Start a Command Prompt as Administrator and change the directory to the bin/ folder of the 4.x MongoDB installation, run the following command:
Run Configure Scheduling Server wizard and change the mongod.exe path to the newly installed 4.x MongoDB, then click on Apply. Start MongoDB service, if stopped.