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

Using JUnit for SCM CLI

I want to add my own SCM CLI subcommand and write some JUnit to test them. But before I wanted to run the RTC JUnit for the standard SCM CLI subcommands, so I took the RTC-SDK-2.0.0.2.zip and unzip it in my RTC environment after that I have imported the com.ibm.team.filesystem.cli.tests plug-in with sources from the plug-in view and run the SniffCommandLineTests junits against a local server 2002 with this arguments:
-ea
-Ddebug.cli.app=C:\apps\RTC-Client-2.0.0.2\jazz\scmtools\eclipse\scm.exe

but have some errors like:
com.ibm.team.repository.transport.client.AuthenticationException: CRJAZ0124I Invalid username or password.

After that I have created a user 'test' and re-run junit with:
-ea
-Ddebug.cli.app=C:\apps\RTC-Client-2.0.0.2\jazz\scmtools\eclipse\scm.exe
-Dserver.user=test
-Dserver.password=test

As is, some BasicTests test cases run but for example test_login_nickname test case (and some others) does not run.

Do I need to initialize the SCM / database with some other users?
Is there any program to run which automatically initialize my local server?
Is there any document about this?

Thanks

0 votes


Be the first one to answer this question!

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

Question asked: Jan 12 '10, 9:51 a.m.

Question was seen: 4,388 times

Last updated: Jan 12 '10, 9:51 a.m.

Confirmation Cancel Confirm