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

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

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

 

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 vote
Steven Behnke Community Champion Jun 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?

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 vote
Steven Behnke Community Champion Jun 29, 2016

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

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Confluence

Color tables for a shiny Confluence page

...; ## Developed by: Alana Fernando ## Shared with love ## @param style:title=style type|type=enum|required=true|desc=Choose a style.|enumValues=Style1,Style2,Style3,Style4,Style5 ## @param alignment:title...

151 views 8 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you