Skip to Content
0

(XSJS) ​How to import a lib file who is not in current test’s sub folder?

Sep 14, 2017 at 03:51 AM

32

avatar image
Former Member

How to import a file who is not in current test’s sub folder?

I have sample codes as below and try to import calculator in sampleTest.

/todo_list/todo_nodejs/calc1/calculator.xsjslib
/todo_list/todo_nodejs/test/sampleTest.xsjslib

I’ve tried below things and none of them works for me

————–

$.import(“todo_list.todo_nodejs.calc1”, “calculator”);

$.import(“todo_nodejs.calc1”, “calculator”);

$.import(“../calc1”, “calculator”);

var clib = $.import(“../calc1/calculator.xsjslib”);

—————–

Any idea?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers