Looking for a way to do automated test logins to Confluence (to detect application downtime).

Max Hozven June 29, 2016

Hello,

I'm looking for a recommendation for a tool we can run from another computer on our network to periodically test logins to Confluence v5.9.2 (and alert us when it stops becoming possible)? I know there's many choices out there, hoping for one that confirmed works with Confluence logins. Also that could ideally log out of the session after (as if a login is successful, I know the next login will warn that you are already logged in, which I think would break most automated login scripts).

Please let me know, thank you.

-Max

4 answers

2 votes
Joseph Pursel June 29, 2016

Max.

I automated JIRA testing using Jmeter for similar reasons as you describe. I have not automated Confluence testing yet.

I have Jmeter login, perform some scripted issue comments and Agile board changes, and logout. Jmeter can be configured to write your results to a log file for later viewing, and you can watch the tests using a monitor.

to verify the results, I access the JIRA issues updated to see when comments were made and match them to the time Jmeter recorded the action.

Hope this helps.

Joseph

 

Max Hozven June 29, 2016

Joseph,

Thank you for your suggestion below.

I have not used jmeter before, but just watched a video demonstration, I will try it out for this purpose.  If I can get it to work, I'll have to figure out how to script it and determine when it fails so it can email me an alert.  Have you ever done something like this before in your environment?

Here's the video I found for others who are interested:

JMeter - How To Login Into A Web Application

 

https://www.youtube.com/watch?v=hGkrSFKcj10

 

Thank you.

 

-Max

0 votes
Steven F Behnke
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.
June 29, 2016

You should be able to use basic authentication. Let me dig a little bit into that.

0 votes
Max Hozven June 29, 2016

Hello,

Thank you for your suggestion, much appreciated.

In our case, when the problem surfaces, the web page always responds (displaying login/password), after you enter a login and password, in the bottom left hand corner of the browser (Firefox) it says "Waiting for server confluence.example.com".

If we used a shell script question with the above, could we add login/password info, so it would try to login and enter a different result code for success vs. error?

The most I've ever done in the past is write shell scripts to ping hosts or determine if http/https is responding, nothing with automated logins.

-Max

 

0 votes
Steven F Behnke
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.
June 29, 2016

Have you considered just pinging the API? 

A small query or perhaps some other endpoint – https://confluence.example.com/rest/api/search?cql=text+~+%22query%22&limit=1?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events