<div dir="ltr">I've prepared example <a href="https://gist.github.com/panva/b047e176f612d817c68ca57412ffcd2a">output</a> of the current test suite and included the tests you refer to as examples. Two outputs - one where all pass, other when two tests fail.<div><br></div><div>In essence i'm just working around a <a href="https://mochajs.org/">test framework</a> and assert what's described in 'Expected result' actually happens, hence the current barebone output. It is possible to enrich the results with more verbose output, push these into files similar to what the RP tool exposes - per test .log, every test would output the steps and assertions that are being taken. I'm assuming others can do the same or similar.</div><div><br></div><div>I come to think a detailed verbose output of the RP is even more of an evidence of a compliant RP behavior than a screenshot of just the result. Now to come up with what's necessary in the log file to validate the behavior, a standardized format for the messages.</div><div><div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">Best,<br><b>Filip Skokan</b></div></div>
<br><div class="gmail_quote">On Sat, Dec 10, 2016 at 2:46 AM, Mike Jones <span dir="ltr"><<a href="mailto:Michael.Jones@microsoft.com" target="_blank">Michael.Jones@microsoft.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="EN-US">
<div class="gmail-m_8968583395387046957WordSection1">
<p class="MsoNormal"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">Hans Zandbelt and I have also exchanged thoughts on this and he’d also like the option to submit RP-collected logs rather than screen shots as auditable evidence
 of compliant RP behavior.  I’ll work on proposed language for the instructions allowing this possibility.  I’ll be looking forward to your feedback on it.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">It seems like your test harness must have knowledge of which tests succeed by detecting negative outcomes (such as rp-id_token-bad-sig-rs256 and rp-id_token-issuer-mismatch)
 and which succeed by detecting positive outcomes (such as rp-nonce-unless-code-flow and rp-token_endpoint-client_<wbr>secret_basic).  Could you share your categorization with the working group?  Hans, you must have this information too.  Can you do the same?  I
 plan to use this list in the updated instructions to describe how people can verify the expected outcomes of the tests.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">                              <wbr>                              <wbr>    Thanks all,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">                              <wbr>                              <wbr>    -- Mike<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10pt;font-family:tahoma,sans-serif">From:</span></b><span style="font-size:10pt;font-family:tahoma,sans-serif"> Filip [mailto:<a href="mailto:panva.ip@gmail.com" target="_blank">panva.ip@gmail.com</a>]
<br>
<b>Sent:</b> Thursday, December 08, 2016 10:41 AM<br>
<b>To:</b> Mike Jones<br>
<b>Cc:</b> Roland Hedberg; <a href="mailto:openid-specs-ab@lists.openid.net" target="_blank">openid-specs-ab@lists.openid.<wbr>net</a></span></p><div><div class="gmail-h5"><br>
<b>Subject:</b> Re: [Openid-specs-ab] RP Certification has launched to Pilot Phase<u></u><u></u></div></div><p></p><div><div class="gmail-h5">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">In my suite<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">When the test focuses on returned data (green path) then the data presence simply being asserted by the suite. Any errors encountered during the test run resolve in the test failing to finish, outputting the failed assertion.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">When the test focuses on an error being thrown by the library, the part of the code that is supposed to throw is wrapped in a try / catch, with an ensuring throw right after the statement that is expected to throw in the first place, ensuring
 there's always an error thrown. In the catch block i assert the error being thrown to be the expected one together with it's message. Should the expected exception not happen, the ensuring one will and the assertion for expected message fails.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Trying to understand the screenshots that you have in mind, are you expecting a screenshot from a user-agent? Or a console log outputting the expected data/error, or something completely different?<u></u><u></u></p>
</div>
<p class="MsoNormal"><br clear="all">
<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Best,<br>
<b>Filip Skokan</b><u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Thu, Dec 8, 2016 at 7:27 PM, Mike Jones <<a href="mailto:Michael.Jones@microsoft.com" target="_blank">Michael.Jones@microsoft.com</a>> wrote:<u></u><u></u></p>
<p class="MsoNormal">I'd like to know more about how your test harness code verifies the invariants and logs that they were met.  The main thing that the screen shots are trying to achieve are transparency - that anyone can verify that your implementation got
 it right.  If there's another way of achieving that transparency, I'm sure that the working group would entertain it.  Hopefully this would be easier than having to have third parties read your test harness code.<br>
<br>
If we can simplify things for developers while maintaining transparency, I'm all for it.<br>
<br>
                                Your thoughts?<br>
<span class="gmail-m_8968583395387046957hoenzb"><span style="color:rgb(136,136,136)">                                -- Mike</span></span><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><br>
-----Original Message-----<br>
From: Openid-specs-ab [mailto:<a href="mailto:openid-specs-ab-bounces@lists.openid.net" target="_blank">openid-specs-ab-<wbr>bounces@lists.openid.net</a>] On Behalf Of Roland Hedberg via Openid-specs-ab<br>
Sent: Thursday, December 8, 2016 8:06 AM<br>
To: Filip <<a href="mailto:panva.ip@gmail.com" target="_blank">panva.ip@gmail.com</a>><br>
Cc: <a href="mailto:openid-specs-ab@lists.openid.net" target="_blank">openid-specs-ab@lists.openid.<wbr>net</a><br>
Subject: Re: [Openid-specs-ab] RP Certification has launched to Pilot Phase<br>
<br>
<br>
> 8 dec. 2016 kl. 13:48 skrev Filip via Openid-specs-ab <<a href="mailto:openid-specs-ab@lists.openid.net" target="_blank">openid-specs-ab@lists.openid.<wbr>net</a>>:<br>
><br>
> Hello Mike, everyone,<br>
><br>
> in case of a library, rather than a deployment being tested, the interface provided by Roland is excellent for writing a suite like so that executes one test after the other in a ”spec” like manner, without any browser involvement, seeing how it is expected
 to submit image proofs of thrown errors is the described testing not eligible for certification submission?<br>
<br>
I have a similar suite as Filip for running tests on my library against the test tool and I think Hans might also.<br>
So, that is definitely a reasonable, if not even the preferred, use case.<br>
<br>
> Of course it is entirely possible to rewrite the test suite to use a browser and capture the results there instead, but i think providing the codebase used for executing the tests and it's output where the executed assertions for each test are clearly marked
 could serve as proof as well.<br>
><br>
> What do you think?<br>
><br>
> Best,<br>
> Filip Skokan<br>
><br>
> On Thu, Dec 8, 2016 at 12:17 PM, Mike Jones via Openid-specs-ab <<a href="mailto:openid-specs-ab@lists.openid.net" target="_blank">openid-specs-ab@lists.openid.<wbr>net</a>> wrote:<br>
> There are now complete RP certification submission instructions at <a href="http://openid.net/certification/rp_submission/" target="_blank">
http://openid.net/<wbr>certification/rp_submission/</a> and updated example submissions showing RP certifications referenced from it at
<a href="http://openid.net/wordpress-content/uploads/2016/12/Certification-Submission-Examples.pdf" target="_blank">
http://openid.net/wordpress-<wbr>content/uploads/2016/12/<wbr>Certification-Submission-<wbr>Examples.pdf</a>.  This means that we’re ready to accept real RP certification submissions!<br>
><br>
><br>
><br>
> Hans, Edmund, Filip, Rich (and of course Roland) – you’ve been actively testing.  I encourage you to now take the final step to submit actual RP certification applications (thereby testing the instructions).  Please contact me (and possibly also Roland) if
 you have any questions about the instructions or suggestions on how to make them better.  All other members are likewise encouraged to likewise participate in the pilot phase, during which RP certifications are free.<br>
><br>
><br>
><br>
> A huge thanks to Roland and the early testers for getting us to this point – especially Hans and Edmund!<br>
><br>
><br>
><br>
> We’ll talk about this progress and related items on the Connect working group call in 3.75 hours…<br>
><br>
><br>
><br>
>                                                        -- Mike<br>
><br>
><br>
> ______________________________<wbr>_________________<br>
> Openid-specs-ab mailing list<br>
> <a href="mailto:Openid-specs-ab@lists.openid.net" target="_blank">Openid-specs-ab@lists.openid.<wbr>net</a><br>
> <a href="http://lists.openid.net/mailman/listinfo/openid-specs-ab" target="_blank">
http://lists.openid.net/<wbr>mailman/listinfo/openid-specs-<wbr>ab</a><br>
><br>
><br>
> ______________________________<wbr>_________________<br>
> Openid-specs-ab mailing list<br>
> <a href="mailto:Openid-specs-ab@lists.openid.net" target="_blank">Openid-specs-ab@lists.openid.<wbr>net</a><br>
> <a href="http://lists.openid.net/mailman/listinfo/openid-specs-ab" target="_blank">
http://lists.openid.net/<wbr>mailman/listinfo/openid-specs-<wbr>ab</a><br>
<br>
-- Roland<br>
"Education is the path from cocky ignorance to miserable uncertainty.” - Mark Twain<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
Openid-specs-ab mailing list<br>
<a href="mailto:Openid-specs-ab@lists.openid.net" target="_blank">Openid-specs-ab@lists.openid.<wbr>net</a><br>
<a href="http://lists.openid.net/mailman/listinfo/openid-specs-ab" target="_blank">http://lists.openid.net/<wbr>mailman/listinfo/openid-specs-<wbr>ab</a><u></u><u></u></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
</div></div></div>
</div>

</blockquote></div><br></div></div></div></div>