The tool doesn't like a string directly inserted into the output path of the Gzip Compress and when I use a variable for output it doesn't write the file to that path. Instead it writes it to original location with gz extension.
Release : 4.9.1 Javelin 4.9.159.0
Component : CA Test Data Manager - Javelin
Working as designed.
The "output" prefix in OutputFilePath property name doesn't mean that it's desirable path to the output file but that this particular property will be set by the activity (or you can say that it'll be output of this activity). So this property indeed expects the variable name (and only variable name, nothing else) which receives the path of the output file. The original value of the variable is irrelevant - it'll be ignored and overwritten with the path to the output. As such it's not possible to control where the output file will be created with this activity - however it's possible to move the file with some other (following) activity.
The "output" prefix really means the output file path but the rest is still valid - it isn't meant to control where the output file WILL BE created but to receive the path where the output WAS created.
It's working by design - this property allows users to specify into which variable the output path will be stored, that's all. It doesn't allow users to specify the path where the output will be created.
The output is created in the same directory as input with .gz extension. Period. No copying, no variables, nothing. After it's created the variable specified in OutputFileName is updated with the path of the output file. THEN it's possible to use that variable (and its value) for another actions - for example for sending that file somewhere or copying it somewhere else.