Set environment variables for run

32 views
Skip to first unread message

Leon Proskurov

unread,
Oct 24, 2019, 4:04:48 AM10/24/19
to RedLine13
I am creating a load test on AWS SQS service.
The AWS SQS service SDK requires environment variables for the authentication process.

I think this will be a nice feature to be able to add them using RedLine13 GUI

Chris Baeckstrom

unread,
Oct 25, 2019, 2:41:44 PM10/25/19
to Leon Proskurov, RedLine13
Leon,

We'll discuss this next week and get back to you.

How's everything else going with your load testing?

Chris

--
You received this message because you are subscribed to the Google Groups "RedLine13" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redline13+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/redline13/f1954594-92e9-42e4-9a95-3979ab6f7f5d%40googlegroups.com.


--
Chris Baeckstrom 

Richard Friedman

unread,
Oct 29, 2019, 8:55:33 PM10/29/19
to Chris Baeckstrom, Leon Proskurov, RedLine13
Hi Leon,

It is a good idea, but we wanted to stay away from storing any credentials if possible. 
However, a while back we did add (but did not publicly document) the custom-dev plugin 

image.png

It's kind of simple it runs a function your BASH file before the test runs! 
1 - you just have to implement a function 
# Plugin install script.  Download and extracts files.
function plugin_install()
{
	# Get user info
	userHome=$1
	user=$2

        # YOUR CODE HERE
}

2 - The BASH file should be accessible to your agent and should be just the file - for example the 'raw' contents of a file on git

You could bake into that your ENV variables and set them 
 
export FOO=THING_TO_SET

3 - Caveats 
If you are going to inject environment variables there might be some 'depends' 
- What type of test are you doing?  JMeter?  then this would be passed in via JVM_ARGS, which we already support
- Custom scripts?  Then there might be better ways to do this.

Also we execute the test under a contained user, so you might want to inject this in the startup script. 

Anyway - that is our current suggestion
if you can share more details about what you are trying to do that would help us further identify a solution. 
If you have private info please email us at in...@redline13.com

Regards
Rich



Chris Baeckstrom

unread,
Nov 4, 2019, 7:21:33 AM11/4/19
to Richard Friedman, Leon Proskurov, RedLine13
Leon,

Did Rich's email help?

Chris

Leon Proskurov

unread,
Nov 4, 2019, 7:46:06 AM11/4/19
to Chris Baeckstrom, Richard Friedman, RedLine13
Did not had a chance to test it yet
Reply all
Reply to author
Forward
0 new messages