Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Load RM API into JS without connecting to server.

Is there a way to include the RM API into JS without connecting to server.

I am trying to test the DNG extension widget code written using RM API. I am using mocha JavaScript test framework.

Issue:I am getting an error on "RM.Data.Attributes.IDENTIFIER" as undefined since I have not included RM API

Any help provided is highly appreciated.

Thank you.

0 votes



One answer

Permanent link

You call it an "extension" but still expect it to work without the "base" which you have to retrieve from the server? You can try to rip out all the JavaScript from the RDNG server and server it from another server. And still, you need some soft of server for it to work. So why not just use the existing RDNG server?

0 votes

Comments

My main.js (example) is yes an extension that runs on the DNG server.

I am trying to test main.js code using the test framework called mocha. I am just a learner on this framework.

I wanted to run tests similar to Junits for Java which doesn't need a server to run the tests. Wanted to know similar to case of RTC in java we have jars that don't need server during testing.

I'm not aware such testing method with JavaScript at all. For the RM extension API, it definitely needs a running environment.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938
× 5

Question asked: Feb 15 '17, 4:10 a.m.

Question was seen: 2,177 times

Last updated: Feb 16 '17, 8:22 p.m.

Confirmation Cancel Confirm