File not found error for global functions

Tuesday, May 13, 2014 3:02:20 AM
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 4:19:35 PM
Avatar
re: countdownSupport on Tuesday, May 13, 2014 3:02:20 AM
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: http://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 9:06:13 PM
Avatar
re: inflectra.sarahx on Tuesday, May 13, 2014
Thanks Sarah, I'll give that a go.
Statistics
  • Started: Tuesday, May 13, 2014 3:02:20 AM
  • Last Reply: Tuesday, May 13, 2014 9:06:13 PM
  • Replies: 2
  • Views: 914