xmpp-compliance-tester

XMPP Compliance Tester, forked from github.com/iNPUTmice/ComplianceTester
git clone https://git.in0rdr.ch/xmpp-compliance-tester.git
Log | Files | Refs | Pull requests |Archive | README | LICENSE

commit 869111df03b86d8254a2708e431a7b58c5c80ff7
parent ddd5a4951a94315d9f8ae454f5925f631a600b14
Author: Daniel Gultsch <daniel@gultsch.de>
Date:   Sun,  5 Jun 2016 16:00:54 +0200

prettyfied output and add example output to readme

Diffstat:
MREADME.md | 21++++++++++++++++++++-
Msrc/main/java/eu/siacs/ComplianceTester.java | 3++-
2 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md @@ -1,10 +1,29 @@ Compliance Tester for XMPP Servers ================================== -Use this tool to test various your XMPP server for compatibility with various compliance suits. +Use this tool to test your XMPP server for compatibility with various compliance suits. You can easily mix and match various test cases to compose your own compliance suite or you can use a preexisting compliance suite. Build with ```mvn package``` (needs Java 8) Run with ```java -jar target/ComplianceTester.jar username@domain password``` + +Example output: +``` +Use compliance suite 'Relevant for Conversations' to test conversations.im + +running Roster Versioning… PASSED +running XEP-0198: Stream Management… PASSED +running XEP-0352: Client State Indication… PASSED +running XEP-0191: Blocking Command… PASSED +running XEP-0313: Message Archive Management… PASSED +running XEP-0357: Push Notifications… FAILED +running XEP-0115: Entity Capabilities… PASSED +running XEP-0045: Multi-User Chat… PASSED +running XEP-0363: HTTP File Upload… PASSED +running XEP-0163: Personal Eventing Protocol… PASSED +passed 9/10 + +Relevant for Conversations: FAILED +``` diff --git a/src/main/java/eu/siacs/ComplianceTester.java b/src/main/java/eu/siacs/ComplianceTester.java @@ -24,8 +24,9 @@ public class ComplianceTester { xmppClient.login(jid.getLocal(), password); try { AbstractTestSuite testSuite = TestSuiteFactory.create(EverythingTestSuite.class, xmppClient); + System.out.println("Use compliance suite '"+testSuite.getName()+"' to test "+jid.getDomain()+"\n"); testSuite.run(); - System.out.println(testSuite.getName() + ": " + testSuite.result()); + System.out.println("\n"+testSuite.getName() + ": " + testSuite.result()); } catch (AbstractTestSuite.TestSuiteCreationException e) { e.printStackTrace(); System.out.println("Test suite creation failed");