Hi,
I'm trying to use the JIRA's TestKit tool. Is there a way to change the default authentication credentials? i.e. Instead of using admin/admin change it to tester/tester?
Thanks!
Community moderators have prevented the ability to post new answers.
The user and password are not configurable through property, but you can call com.atlassian.jira.testkit.client.RestApiClient.loginAs(String, String) method on any of the "Control" classes(i.e. com.atlassian.jira.testkit.client.IssueTypeControl, com.atlassian.jira.testkit.client.ProjectControl, etc...) and the credentials will be "remembered" and any subsequent call will use them.
TestKit is also open source, so if you need to have the credentials configurable you can always contribute this to the project :)
https://bitbucket.org/atlassian/jira-testkit
So, let's say I need to restore a jira instance, create a user and add a new project, should I be using this:
Backdoor testKit = new Backdoor(new TestKitLocalEnvironmentData());
testKit.restoreDataFromResource("jira.zip", TimeBombLicence.LICENCE_FOR_TESTING); testKit.usersAndGroups().loginAs("testadmin", "testadmin").addUser("test-user");
testKit.project().addProject("Test Project", "TP", "testadmin");
No need to use:
testKit.project().loginAs("testadmin", "testadmin").addProject("Test Project", "TP", "testadmin");
Is that right?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes that should work
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
FYI. It seems that I have to include ".loginAs" everytime I use a different object. This will work:
testKit.usersAndGroups().loginAs("testadmin", "testadmin").addUser("test-user"); testKit.usersAndGroups().addUser("test-user-another");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes for each different "Control" class you'll have to specify user/pass
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.