File not found error for global functions

Tuesday, May 13, 2014
Avatar
Hi,

I want to set up global functions for my tests that will sit in their own folder, so that only one file will be updated for global functions.  The help file says to use global.getFullPath for the user created functions, but this is in the test case folder, which means we'd need to copy the global functions into each test case folder.

I've created a folder and added my functions file to this folder, and tried to call it like so:
eval(g_helper.Include("\"C:\\Rapise\\Tests\\globalFunctions\\globalFunctions.js\""));

However, this just returns an error saying file not found.   

Is there something else I need to do in order to access files in another location?

Cheers,
Amanda






2 Replies
Tuesday, May 13, 2014
Avatar
inflectra.sarahx
re: countdownSupport Tuesday, May 13, 2014
Hi Amanda

Have you looked at the UsingInclude sample that is included with Rapise, it has some examples of how to include files. Also the KB article: https://www.inflectra.com/Support/KnowledgeBase/KB19.aspx

You may want to try: eval(g_helper.Include('C:\\Rapise\\Tests\\globalFunctions\\globalFunctions.js'));

If that doesn't work, I'd recommend opening a help desk ticket.

Regards
Sarah
Tuesday, May 13, 2014
Avatar
re: inflectra.sarahx Tuesday, May 13, 2014
Thanks Sarah, I'll give that a go.

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Tuesday, May 13, 2014
  • Last Reply: Tuesday, May 13, 2014
  • Replies: 2
  • Views: 3120