<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><div class="gmail_default" style="color:rgb(34,34,34);font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;font-family:arial,helvetica,sans-serif">Hi,<br></div><div class="gmail_quote" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif"><br></div><div style="font-family:arial,helvetica,sans-serif">I have some difficulties in making this test into the data-driven test.</div><div style="font-family:arial,helvetica,sans-serif">For the data-driven, I have the problem in defining the array type the data function. how to use this function to<span style="font-size:12.8px"> store the array type values </span></div><div style="color:rgb(34,34,34);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;font-family:arial,helvetica,sans-serif"><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></span></span></div><div style="color:rgb(34,34,34);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;font-family:arial,helvetica,sans-serif"><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">QTest::addColumn<</span><span style="color:rgb(0,0,0);background-color:rgb(127,96,0)">int</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">>("result"<wbr>);</span><br></span><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><div class="m_-6474837965500889947gmail-m_1911453751045191420gmail-m_-8952806148270008647m_-8988460375539872637gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-size:12.8px;font-weight:400"><font size="2" face="arial, helvetica, sans-serif"><div style="font-family:arial,helvetica,sans-serif;display:inline"><div style="font-family:arial,helvetica,sans-serif;display:inline">here in the example defining the Int </div><div style="font-family:arial,helvetica,sans-serif;display:inline">data type </div>but<div style="font-family:arial,helvetica,sans-serif;display:inline">​ ​</div></div>I<div style="font-family:arial,helvetica,sans-serif;display:inline">​ ​</div><div style="display:inline">want to use<div style="font-family:arial,helvetica,sans-serif;display:inline">​ ​</div><div style="font-family:arial,helvetica,sans-serif;display:inline">its </div>n<span> </span><b style="font-family:arial,helvetica,sans-serif">array</b> instead of <span style="color:rgb(0,0,0);font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><b style="font-family:monospace">int<div style="font-family:arial,helvetica,sans-serif;display:inline">.</div></b></span></div></font></div><div style="font-size:12.8px;font-weight:400"><font size="2" face="arial, helvetica, sans-serif"><div style="display:inline"><span style="color:rgb(0,0,0);font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><b style="font-family:monospace"><div style="font-family:arial,helvetica,sans-serif;display:inline"><br></div></b></span></div></font></div><div><div style="font-family:arial,helvetica,sans-serif">I try<span> </span><span style="color:rgb(64,66,68);font-family:"Titillium Web",Arial,Helvetica,sans-serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Q_DECLARE_METATYPE()</span><span> </span>  to define it like this</div><div style="font-family:arial,helvetica,sans-serif">/*****************************<wbr>*********************</div><div style="font-family:arial,helvetica,sans-serif">​<span style="font-family:monospace"><span style="color:rgb(135,255,175);background-color:rgb(255,255,255)">namespace</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><span> </span>CryptData<span> </span></span><br>{    <br>   <span style="color:rgb(135,255,175);background-color:rgb(255,255,255)">struct</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><span> </span>Data {<span> </span></span><br>       <span style="color:rgb(135,255,175);background-color:rgb(255,255,255)">unsigned</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><span> </span></span><span style="color:rgb(135,255,175);background-color:rgb(255,255,255)">int</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><span> </span>a[</span><span style="color:rgb(255,84,255);background-color:rgb(255,255,255)">2</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">];<span> </span></span><br>   };<span> </span><br>   <span style="color:rgb(135,255,175);background-color:rgb(255,255,255)">struct</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><span> </span>Key {  </span><br>       <span style="color:rgb(135,255,175);background-color:rgb(255,255,255)">unsigned</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><span> </span></span><span style="color:rgb(135,255,175);background-color:rgb(255,255,255)">int</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><span> </span>k[</span><span style="color:rgb(255,84,255);background-color:rgb(255,255,255)">4</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">];<span> </span></span><br>   };<span> </span><br>}<br>Q_DECLARE_METATYPE(CryptData::<wbr>Data)<span> </span><br>Q_DECLARE_METATYPE(CryptData::<wbr>Key)<br></span>/*****************************<wbr>**************************</div><div style="font-family:arial,helvetica,sans-serif">but in this method I face lot of troubles in<span> </span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:100;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">initializing</span> the value by function newRow().</div><div style="font-family:arial,helvetica,sans-serif"><br></div><div style="font-family:arial,helvetica,sans-serif">Can I test with more values instead of data-driven?</div><div style="font-family:arial,helvetica,sans-serif">I don't know what should I do.</div><div style="font-family:arial,helvetica,sans-serif"><br></div><div style="font-family:arial,helvetica,sans-serif">please help!!</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><div class="gmail_extra"><div><div class="m_-6474837965500889947gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><div dir="ltr"><font size="2" face="arial, helvetica, sans-serif">Regards,</font><div style="font-size:12.8px"><font size="2" face="arial, helvetica, sans-serif">Himanshu Vishwakarma</font></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Sun, Jan 28, 2018 at 8:12 PM, Vijay Krishnavanshi <span dir="ltr"><<a href="mailto:noreply@phabricator.kde.org" target="_blank">noreply@phabricator.kde.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_-6474837965500889947HOEnZb"><div class="m_-6474837965500889947h5"><table><tbody><tr><td>vijaykrishnavanshi added inline comments.
</td><td><a style="text-decoration:none;padding:4px 8px;margin:0 8px 8px;float:right;color:#464c5c;font-weight:bold;border-radius:3px;background-color:#f7f7f9;background-image:linear-gradient(to bottom,#fff,#f1f0f1);display:inline-block;border:1px solid rgba(71,87,120,.2)" href="https://phabricator.kde.org/D10160" rel="noreferrer" target="_blank">View Revision</a></td></tr></tbody></table><br><div><strong>INLINE COMMENTS</strong><div><div style="margin:6px 0 12px 0"><div style="border:1px solid #c7ccd9;border-radius:3px"><div style="padding:0;background:#f7f7f7;border-color:#e3e4e8;border-style:solid;border-width:0 0 1px 0;margin:0"><div style="color:#74777d;background:#eff2f4;padding:6px 8px;overflow:hidden"><a style="float:right;text-decoration:none" href="https://phabricator.kde.org/D10160#inline-46737" rel="noreferrer" target="_blank">View Inline</a><span style="color:#4b4d51;font-weight:bold">qqcrypttest.cpp:11</span></div>
<div style="font:11px/15px "Menlo","Consolas","Monaco",monospace;white-space:pre-wrap;clear:both;padding:4px 0;margin:0"><div style="padding:0 8px;margin:0 4px;background:rgba(151,234,151,.6)"><span style="color:#aa4000">private</span> <span style="color:#a0a000">slots</span><span class="m_-6474837965500889947m_-1559966478301566634p">:</span>
</div><div style="padding:0 8px;margin:0 4px;background:rgba(151,234,151,.6)">    <span style="color:#aa4000">void</span> <span class="m_-6474837965500889947m_-1559966478301566634n">CryptTest</span><span class="m_-6474837965500889947m_-1559966478301566634p">();</span>
</div><div style="padding:0 8px;margin:0 4px;background:rgba(151,234,151,.6)"><span class="m_-6474837965500889947m_-1559966478301566634p">};</span>
</div></div></div>
<div style="margin:8px 0;padding:0 12px"><p style="padding:0;margin:8px">Make this test data-driven.<br>
Link: <a href="http://doc.qt.io/qt-5/qttestlib-tutorial2-example.html" class="m_-6474837965500889947m_-1559966478301566634remarkup-link" rel="noreferrer" target="_blank">http://doc.qt.io/qt-5/qttestli<wbr>b-tutorial2-example.html</a></p></div></div></div></div></div><br><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D10160" rel="noreferrer" target="_blank">https://phabricator.kde.org/D1<wbr>0160</a></div></div><br><div><strong>To: </strong>himanshuvishwakarma, vijaykrishnavanshi, pali, Kopete<br><strong>Cc: </strong>cochise<br></div></div></div></blockquote></div><br></div></div>