<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1466620241075_11250"><span>hello &nbsp;Perry,&nbsp;</span></div><div id="yui_3_16_0_ym19_1_1466620241075_11250"><span><br></span></div><div id="yui_3_16_0_ym19_1_1466620241075_11250" dir="ltr"><span id="yui_3_16_0_ym19_1_1466620241075_11565">i am EE and software guy in C,c++, c# and now python where i have developed test frameworks myself and used frameworks made by others as well. &nbsp; &nbsp;tools i have developed are used to program, configure and test various devices, modules and prototypes at all stages of new electronic device development. on feeding variables, you need to follow OOP design practices by creating new classes containing public get/set accessors; i.e. if the hardware interface is LAN, you could build in a class with an overloaded constructor with overloads as follows;</span></div><div id="yui_3_16_0_ym19_1_1466620241075_11250" dir="ltr">class Tcp:</div><div id="yui_3_16_0_ym19_1_1466620241075_11250" dir="ltr">&nbsp; &nbsp; &nbsp;Tcp():</div><div id="yui_3_16_0_ym19_1_1466620241075_11250" dir="ltr">&nbsp; &nbsp; &nbsp;//use declared default ip address and port&nbsp;</div><div id="yui_3_16_0_ym19_1_1466620241075_11250" dir="ltr">&nbsp; &nbsp; &nbsp; ...</div><div id="yui_3_16_0_ym19_1_1466620241075_11250" dir="ltr">&nbsp; &nbsp; &nbsp;Tcp(ipAddress):</div><div id="yui_3_16_0_ym19_1_1466620241075_11250" dir="ltr">&nbsp; &nbsp; &nbsp;//use default port and new ipaddress</div><div id="yui_3_16_0_ym19_1_1466620241075_11250" dir="ltr"><span style="font-size: 16px;">&nbsp; &nbsp; &nbsp;...</span></div><div id="yui_3_16_0_ym19_1_1466620241075_11250" dir="ltr"><span style="font-size: 16px;" id="yui_3_16_0_ym19_1_1466620241075_12041">&nbsp; &nbsp; &nbsp;Tcp(ipAddress, Port):</span></div><div id="yui_3_16_0_ym19_1_1466620241075_11250" dir="ltr"><span style="font-size: 16px;" id="yui_3_16_0_ym19_1_1466620241075_12001">&nbsp; &nbsp; &nbsp; //use new ipaddress and port</span></div><div id="yui_3_16_0_ym19_1_1466620241075_11250" dir="ltr"><span style="font-size: 16px;"><br></span></div><div id="yui_3_16_0_ym19_1_1466620241075_11250" dir="ltr"><span style="font-size: 16px;"><br></span></div><div id="yui_3_16_0_ym19_1_1466620241075_11250" dir="ltr"><span style="font-size: 16px;">does this give you ideas Perry?</span></div><div id="yui_3_16_0_ym19_1_1466620241075_11250" dir="ltr"><span style="font-size: 16px;"><br></span></div><div id="yui_3_16_0_ym19_1_1466620241075_11250" dir="ltr"><span style="font-size: 16px;">Ron&nbsp;</span></div><div id="yui_3_16_0_ym19_1_1466620241075_11250" dir="ltr">&nbsp; &nbsp; &nbsp;...</div><div id="yui_3_16_0_ym19_1_1466620241075_11250" dir="ltr"><span style="font-size: 16px;" id="yui_3_16_0_ym19_1_1466620241075_11537">“The desire that guides me in all I do is the desire to harness the forces of nature to the service of mankind.
 
 
 ”Nikola Tesla“Radio Power Will Revolutionize the World” (Modern Mechanix &amp; Inventions, July, 1934)</span></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> On Wednesday, June 22, 2016 8:11 AM, Perry Johnson &lt;Perry.Johnson@efi.com&gt; wrote:<br></font></div>  <br><br> <div class="y_msg_container"><div id="yiv3876613765">

 
 
<style><!--
#yiv3876613765  
 _filtered #yiv3876613765 {font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;}
 _filtered #yiv3876613765 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
#yiv3876613765  
#yiv3876613765 p.yiv3876613765MsoNormal, #yiv3876613765 li.yiv3876613765MsoNormal, #yiv3876613765 div.yiv3876613765MsoNormal
        {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri", "sans-serif";}
#yiv3876613765 a:link, #yiv3876613765 span.yiv3876613765MsoHyperlink
        {color:blue;text-decoration:underline;}
#yiv3876613765 a:visited, #yiv3876613765 span.yiv3876613765MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
#yiv3876613765 span.yiv3876613765EmailStyle17
        {font-family:"Calibri", "sans-serif";color:windowtext;}
#yiv3876613765 .yiv3876613765MsoChpDefault
        {}
 _filtered #yiv3876613765 {margin:1.0in 1.0in 1.0in 1.0in;}
#yiv3876613765 div.yiv3876613765WordSection1
        {}
--></style>

<div>
<div class="yiv3876613765WordSection1">
<div class="yiv3876613765MsoNormal">Hi all,</div> 
<div class="yiv3876613765MsoNormal"> &nbsp;</div> 
<div class="yiv3876613765MsoNormal">I hope this is the right mailing list for this type of question, but I am trying to work with unittest to run through test cases, and I am just not understanding how to do what I need to do.&nbsp; Knowledge wise I am a step up from beginner
 at Python, and I am without a formal CS degree.&nbsp; If I should go to another list, please, let me know which one, and accept my apologies.</div> 
<div class="yiv3876613765MsoNormal"> &nbsp;</div> 
<div class="yiv3876613765MsoNormal">Here is the set up.&nbsp; </div> 
<div class="yiv3876613765MsoNormal"> &nbsp;</div> 
<div class="yiv3876613765MsoNormal">I have a list of settings for software on a physical device which are test cases from a test case management application.&nbsp; These cases involve setting options on the device through software, running a test, and checking the device's output.&nbsp;
 I have set up a basic script to do the options setting, running, and checking.&nbsp; I also have a framework supplied to me using unittest2 that will generate an html file with results of test cases run, using the unittest2.TestCase class.</div> 
<div class="yiv3876613765MsoNormal"> &nbsp;</div> 
<div class="yiv3876613765MsoNormal">I would like to get each "test case" from the TCM application, run those settings through my script, and then get the results from the existing framework.&nbsp; The trouble is I don't see a way to feed variable options into the unittest2.TestCase,
 and from what I have read this may not be what the module was designed for.&nbsp; Creating individual test_ methods for every set of test case options is unwieldy because the options change, and there are thousands of tests.</div> 
<div class="yiv3876613765MsoNormal"> &nbsp;</div> 
<div class="yiv3876613765MsoNormal">Is there an easy way to work around this, or would it be easier to scrap the supplied framework and use another module set for testing?&nbsp; My boss would like me to use the existing framework, but if it isn't too much trouble I could probably
 build my own in my off hours.</div> 
<div class="yiv3876613765MsoNormal"> &nbsp;</div> 
<div class="yiv3876613765MsoNormal">Thank you for reading.</div> 
<div class="yiv3876613765MsoNormal"> &nbsp;</div> 
<div class="yiv3876613765MsoNormal">Best Regards,</div> 
<div class="yiv3876613765MsoNormal">Perry Johnson</div> 
<div class="yiv3876613765MsoNormal"> &nbsp;</div> 
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="2">Confidentiality notice: This message may contain confidential information. It is intended only for the person to whom it is addressed. If you are not that person, you should not use this message. We request that you
 notify us by replying to this message, and then delete all copies including any contained in your reply. Thank you.<br>
</font>
</div>
</div><br>_______________________________________________<br>testing-in-python mailing list<br><a ymailto="mailto:testing-in-python@lists.idyll.org" href="mailto:testing-in-python@lists.idyll.org">testing-in-python@lists.idyll.org</a><br><a href="http://lists.idyll.org/listinfo/testing-in-python" target="_blank">http://lists.idyll.org/listinfo/testing-in-python</a><br><br><br></div>  </div> </div>  </div></div></body></html>