How do I load test against JIRA with 10k+ test user accounts that have not logged on?

Elijah July 27, 2015

JIRA: 4.1.2

Recently we had an issue where the system had died because a cache that was setup only allowed for 2000 users to be in the cache and we had exceeded that.

This was on the Create new incident page where the failure was occurring as it attempts to load all of the users.

I now have a task to test the impact of having 10k 40k 100k users in the cache and see what kind of performance issues we have and also what impact this would have on the system resources.

Herein lies the problem. I can create 10k+ user accounts and put them into our OpenLDAP system but they do not ever show up in JIRA unless we actually log into JIRA with that new user account.

So, how can we get these users to show up in JIRA User Browser without logging into 10k+ user accounts?

Also, no we cannot upgrade. The code base had been so heavily modified by the previous teams that all attempts to upgrade have failed. In order to upgrade, re-engineering of the code will need to be done and those changes moved to a new JIRA but in a way to not fall into the trap of a system that cannot get upgraded.

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Elijah July 28, 2015

@service solahart jakarta barat Remove this useless post please.

0 votes
Brian Ross July 27, 2015

One possible option on how to log into the 10K+ user accounts, You can setup and run a "data driven" test using Selenium.

You can create one Gmail test account, use excel to build the 10k+ gmail addresses needed  (if you know what you are doing in excel it will take under 5 minutes).

Build out a small Selenium script to have the Gmail address log in JIRA and setup their account access.

If the only JIRA environment you have is 'live", then this may not be the best option.

Elijah July 27, 2015

I don't know what Selenium is so I'd have to look that up. I already have 10k users in our LDAP ldif file that I will import. I don't know how to have JIRA setup their account access or are you saying that this is a feature of this Selenium testing tool?

Brian Ross July 27, 2015

Hello Elijah If you are not familiar with what I recommended, then you will end up spending a lot of time researching my suggestion. There is tons of info on the web about the idea I gave you. Here is one link to look at: http://www.c-sharpcorner.com/UploadFile/jawedmd/data-driven-testing-using-selenium-webdriver-in-C-Sharp/

Brian Ross July 27, 2015

You can use the user accounts you have setup already with Selenium data driven techniques, It will be just setting up Selenium to do what you want.

Elijah July 27, 2015

Brian, thank you for the suggestion and direction. I guess I'm off to learn Selenium now. Does this count as being sidetracked. :)

Brian Ross July 27, 2015

Good luck, hope it is an option for you!

wurbanski
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 30, 2015

Using CURL instead of Selenium could be simpler - you would just have to shoot a requests to log in the users in a loop. Much simpler and faster.

Elijah July 30, 2015

@Brian Ross So I downloaded and figured out how to use the tool to capture the login process and logout process. I even saved the workflow out to the html file so I can now use the mini Java program I wrote to allow me to generate X# of users to login and out of the system to activate the accounts. I'm curious if there is a limit to the tool and basically if running 10k processes will freeze this tool up or not. @Wojciech Urbanski [Atlassian] would you post a link to the tool CURL please

Brian Ross July 30, 2015

Hello Elijah In a perfect world, the volume of data you are running won't freeze up the tool. With that said, it would be advised to put one of the Selenium wait commands into your script to make sure JIRA has the correct screen loaded when Selenium attempts to drive the data onto the screen. If the web is not responding as fast as the script is trying to run, then you will run into issues.

wurbanski
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 30, 2015

http://curl.haxx.se/docs/httpscripting.html Basically you need to make a login request for each user. You could also use a web page with piece of JS that would do that.

TAGS
AUG Leaders

Atlassian Community Events