This error occurs when exporting or syncing if a required custom field in TestRail doesn’t have a default value set.
There are two ways to fix this:
Fix 1: Edit the custom field in TestRail
This fixes the issue for everyone using the integration with your TestRail instance. However, you will need to have sufficient rights to edit custom fields.
- In TestRail, find the field and assign it a valid default value.
- Repeat the export/sync in Ranorex Studio.
Fix 2: Change the value in the TestRail sync file
Alternatively, if you can’t or don’t want to edit custom fields, you can also change the value of the field in the TestRail.trsd sync file. This only fixes the problem for your machine. Others will still get the error.
- In the projects view in the Solution Items folder of your solution, double-click TestRail.trsd.
- Find the custom field mentioned in the error message, i.e. custom_myfield in our case.
- Change its Value parameter to a valid value of the custom field.
- Save your solution and repeat the export/sync option.
Note
When repeating the export/sync, you may get a message telling you that changes were detected and to repeat the operation. You can safely ignore it.