Skip Navigation LinksForums > Rapise Forums > Rapise Issues & Questions > Undefined variable

Undefined variable RSS Feed

Tuesday, July 22, 2014

I'm trying to add a URL variable to my objects file so that it's easy to change when testing on different servers.  I've followed the info in here:

I've tried adding the variable definition to the .user and test file but wherever it's located I get an 'undefined' error.

Is there something special you need to do in order to use variables in the object file?

1 Replies
Jim R.Jim R.
re: Judith Brown on Tuesday, July 22, 2014
Friday, August 1, 2014
Hi Amanda

Without seeing the file it's hard to say exactly. I would recommend emailing your test script to and they can provide specific guidance.

Normally you need to define the variables using var g_variable = 'xxxx'; inside the main .js file.

The format would be:

if (typeof(g_variable) == 'undefined')
     g_variable = 'xxxx';

  • Started: 7/22/2014
  • Last Reply: 8/1/2014
  • Replies: 1
  • Views: 1039
Powered by KronoDesk v1.1.0.15 | © Copyright Inflectra Corporation 2011-2017 | Licensed to Inflectra Corporation.