This article explains how to resolve the "invalid option" communication error that occurs when exporting or synchronizing Ranorex tests with TestRail.
Causes and solutions
When you export a project, Ranorex cannot automatically determine which value to assign to custom required fields in TestRail. If a field is mandatory but no data is provided, the synchronization fails.
Set a default value for the custom field in TestRail
The most effective way to prevent this error is to ensure every custom required field has a pre-selected option.
- Log in to TestRail as a user with sufficient rights to edit custom fields.
- Locate the field causing the error message
- Assign a valid default value.
- Retry the export/sync in Ranorex Studio.
Change the value in the TestRail sync file
If it’s not possible to edit custom fields, it is possible to change the value of the field in the TestRail.trsd sync file. This only fixes the problem for your machine, others still get the error.
If the field does not require a value for every test case, you can remove the "required" constraint.
- 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.
- Change its Value parameter to a valid value of the custom field.
- Save your solution and repeat the export/sync option.