Step Error When Using ‘I assign values from config file’
This article describes the root cause and resolution for error messages you may encounter when using the ‘I assign values from config file’ step in Cycle.
Error Examples
You may get error messages similar to the messages below when using the step ‘I assign values from config file’.
Cycle version 2.13 and later:
Cycle versions prior to 2.13:
HOCON File Syntax
Cycle uses the HOCON syntax when parsing the ‘.conf’ file specified in your ‘I assign values from config file’ step.
This syntax is useful for assigning key=value pairs where the “key” becomes the Cycle variable name, but HOCON syntax rule violations can lead to step errors in Cycle.
The HOCON syntax treats the characters listed below as “forbidden characters”:
$ " { } [ ] : = , + # ` ^ ? ! @ * & \ or whitespace
Quotes are required around any string including these characters in order for Cycle to parse the file properly and assign the string to a Cycle variable. These types of characters are typical in passwords and you may run into this issue if you are using a config file to load passwords into Cycle variables.
Examples of Quoted vs Unquoted Strings
Example 1
Unquoted string including ‘#’:
Cycle step result:
Quoted string including "#":
Cycle step result:
Example 2
Unquoted string including "!":
Cycle step result:
Quoted string including "!":
Cycle step result:
Additional information on HOCON syntax can be found by clicking this link:
HOCON syntax
Additional information on using .config files in Cycle can be found by clicking this link:
Cycle User Manual
Related Articles
MOCA Server or Web API Step Timeout Error on Long Running Command
You may see the error message below in your tests if you have a MOCA command or a Web API step that takes longer than 60 seconds to complete. This error message is due to Cycle expecting a response from the MOCA server or the Web API endpoint within ...
My SSH terminal connections are failing in Cycle with error adding to known hosts file.
Problem My SSH terminal connections are failing in Cycle with error adding to known hosts file. Solution SSH terminal connections use a known_hosts file stored in the user’s home directory to store server information when you establish an SSH ...
How to use Groovy to return values in XML strings
Problem It may be necessary to return values from XML strings in your automated tests. This article provides examples for common ways to use the Groovy programming language to output XML information. Solution Cycle includes steps to execute simple ...
Using Cycle's Data Extract Tool
The Data Extract tool allows you to easily create CSV files from an existing database. The Extract Data window can be accessed via the "Tools > Extract Data..." menu item in Cycle. It can also be accessed from the Inspector panel with the ...
How do I create a log file for Cycle Support?
When troubleshooting complex Cycle issues often times the most valuable piece of information that can be provided is the Verbose log file. Luckily creating a Verbose log file is easy! Step 1: From the Cycle client menu bar select Edit -> Preferences ...