<div dir="ltr"><img width="0" height="0" class="mailtrack-img" alt="" style="display:flex" src="https://mailtrack.io/trace/mail/43645099892b10ce5aa376c682096fea6825f1a2.png?u=1477559"><div></div>Hello Tobias,<div><br></div><div>Thank you so much for the detailed explanation. I got the overview of how tests are written and how they are currently organized. </div><div><br></div><div>I have just begun to write the test for typewriter annotation tool and my first test case is "checking if the annotation toolbar has the typewriter tool button in it?"</div><div><br></div><div>Till now I have been succeeded in opening the document data/file1.pdf with the current page as 0 by using the object of Okular::Part and now I'm not getting the way of showing the annotation toolbar and how will I check for the typewriter tool in it? </div><div><br></div><div>Do I need to simulate <F6> keypress for showing the annotation toolbar and if yes, then how will I check for the specific tool in it? </div><div><br></div><div>Need help.</div><div><br></div><div>Thanks and Regards</div><div>Dileep </div><div><br><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 4, 2018 at 1:19 AM, Tobias Deiminger <span dir="ltr"><<a href="mailto:haxtibal@posteo.de" target="_blank">haxtibal@posteo.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Am 03.06.2018 21:39 schrieb Tobias Deiminger:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Am 03.06.2018 08:05 schrieb Dileep Sankhla:<br>
</blockquote>
<br></span>
Ups, I misread the question<span class=""><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What will I compare here?<br>
</blockquote></blockquote>
<br></span>
as "what will compare here?"<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
GUI tests compare with autotests/parttest.cpp.<br>
Core tests potentially compare with autotests/*annot*.cpp<br>
Afaikt there are no tests yet that check painting results pixel wise.<br>
</blockquote>
<br></span>
New answer: You compare actual outcome with expected outcome. What actual outcome and expected outcome means depends on your test case. You have to define it.<span class="HOEnZb"><font color="#888888"><br>
<br>
Tobias<br>
</font></span></blockquote></div><br></div>