<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: Undefined variable (Thread)</title><description> Hi,     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:  https://www.inflectra.com/Support/KnowledgeBase/KB11.aspx        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?     Cheers,  m </description><language>en-US</language><copyright>(C) Copyright 2006-2026 Inflectra Corporation.</copyright><managingEditor>support@inflectra.com</managingEditor><category domain="http://www.dmoz.org">/Computers/Software/Project_Management/</category><category domain="http://www.dmoz.org">/Computers/Software/Quality_Assurance/</category><generator>KronoDesk</generator><a10:contributor><a10:email>support@inflectra.com</a10:email></a10:contributor><a10:id>http://www.inflectra.com/kronodesk/forums/threads</a10:id><ttl>120</ttl><link>/Support/Forum/rapise/issues-questions/957.aspx</link><item><guid isPermaLink="false">threadId=957</guid><author>Judith Brown (judith.brown@countdown.co.nz)</author><category domain="http://www.inflectra.com/kronodesk/thread/tag">variables</category><title>Undefined variable</title><description> Hi,     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:  https://www.inflectra.com/Support/KnowledgeBase/KB11.aspx        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?     Cheers,  m </description><pubDate>Wed, 23 Jul 2014 02:53:18 -0400</pubDate><a10:updated>2014-08-01T16:09:09-04:00</a10:updated><link>/Support/Forum/rapise/issues-questions/957.aspx</link></item><item><guid isPermaLink="false">messageId=1756</guid><author>Jim R (donotreply5@kronodesk.net)</author><title> Hi Amanda  Without seeing the file its hard to say exactly. I would recommend emailing your test sc</title><description> Hi Amanda  Without seeing the file its hard to say exactly. I would recommend emailing your test script to  mailto:support@inflectra.com  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 }    Regards Jim </description><pubDate>Fri, 01 Aug 2014 16:09:09 -0400</pubDate><a10:updated>2018-02-28T21:46:29-05:00</a10:updated><link>/Support/Forum/rapise/issues-questions/957.aspx#reply1756</link></item></channel></rss>