Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / week_2008_01_20.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
4 <head>
5    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6    <meta name="generator" content="Movable Type 5.2.3" />
7
8    <link rel="stylesheet" href="http://defaria.com/blogs/Status/styles-site.css" type="text/css" />
9    <link rel="alternate" type="application/atom+xml" title="Atom" href="http://defaria.com/blogs/Status/atom.xml" />
10    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://defaria.com/blogs/Status/index.xml"$>" />
11
12    <title>Status for Andrew DeFaria: January 20, 2008 - January 26, 2008 Archives</title>
13
14    <link rel="start" href="http://defaria.com/blogs/Status/" title="Home" />
15    <link rel="prev" href="http://defaria.com/blogs/Status/archives/week_2007_12_02.html" title="December  2, 2007 - December  8, 2007" />
16    <link rel="next" href="http://defaria.com/blogs/Status/archives/week_2008_01_27.html" title="January 27, 2008 - February  2, 2008" />
17 </head>
18 <body class="layout-one-column">
19    <div id="container">
20       <div id="container-inner" class="pkg">
21
22          <div id="banner">
23             <div id="banner-inner" class="pkg">
24                <h1 id="banner-header"><a href="http://defaria.com/blogs/Status/" accesskey="1">Status for Andrew DeFaria</a></h1>
25                <h2 id="banner-description">Searchable status reports and work log</h2>
26             </div>
27          </div>
28
29          <div id="pagebody">
30             <div id="pagebody-inner" class="pkg">
31                <div id="alpha">
32                   <div id="alpha-inner" class="pkg">
33                      
34                      <p class="content-nav">
35                         <a href="http://defaria.com/blogs/Status/archives/week_2007_12_02.html">&laquo; December  2, 2007 - December  8, 2007</a> |
36                         <a href="http://defaria.com/blogs/Status/">Main</a>
37                         | <a href="http://defaria.com/blogs/Status/archives/week_2008_01_27.html">January 27, 2008 - February  2, 2008 &raquo;</a>
38                      </p>
39                      
40                      
41                      <!--
42 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
43          xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
44          xmlns:dc="http://purl.org/dc/elements/1.1/">
45 <rdf:Description
46     rdf:about="http://defaria.com/blogs/Status/archives/week_2008_01_20.html#entry-000694"
47     trackback:ping="http://defaria.com/mt/mt-tb.cgi/81"
48     dc:title="East.pm"
49     dc:identifier="http://defaria.com/blogs/Status/archives/week_2008_01_20.html#entry-000694"
50     dc:subject="General Dynamics"
51     dc:description=" Initial coding of East.pm Added parameters to testeast script Changed Rexec to handle timeouts better Opened WOR for Rexec work..."
52     dc:creator=""
53     dc:date="2008-01-23T13:32:00-06:00" />
54 </rdf:RDF>
55 -->
56
57
58                      <h2 class="date-header">January 23, 2008</h2>
59                      <a id="a000694"></a>
60                      <div class="entry" id="entry-694">
61                         <h3 class="entry-header">East.pm</h3>
62                         <div class="entry-content">
63                            <div class="entry-body">
64                               <ul>
65   <li>Initial coding of East.pm</li>
66
67   <li>Added parameters to testeast script</li>
68
69   <li>Changed Rexec to handle timeouts better</li>
70
71   <li>Opened WOR for Rexec work</li>
72 </ul>
73                               
74                               <h2>East.pm Library</h2>
75
76 <p>Started coding the East.pm library. The idea was that this library would allow testers to invoke tests using a few simple Perl statements. Work on this was initially laid out by Gantry York for other simulators like TM500, etc. This East.pm merely falls in line with those.</p>
77
78 <p>I'm trying to code a Perl library for running test cases/suites on East. I'm new to this environment so I don't understand it well. It seems like there are test cases and test suites. There may be "load runner" things and "regression runner" things. All of these objects and how this works is all Greek to me at this moment.</p>
79
80 <p>What I'm told is that in order to run these things the following steps must take place:</p>
81
82 <ol>
83   <li>From the RAN, ssh to raneast</li>
84
85   <li>Once there a TCL/Tk script will pop up a window that shows various RBS/RNC/East things numbered from 1-7. Some boxes will be red indicating that they are in use and some will be green indicating that they are available.</li>
86
87   <li>I assume I'm supposed to pick a green one. Whether I'm looking for an RBS or an RNC or even an East is unknown to me at this time. <font color=red>This is chosen based on the Device Under Test, if you want to test rbs6 that is what you would choose.  East logins are used only for scripting purposes, and will not work for actual execution.</font></li>
88
89   <li>So far I've only played with RBSs so I pick a green RBS box and type in "rbs &lt;n&gt;" where &lt;n&gt; is the number of the green box I chose. This apparently goes through a mapping of sorts and ssh's to a ceast machine of appropriate number.</li>
90
91   <li>Once there I do a start_east_auto &lt;view name&gt; &lt;rbs&lt;n&gt;&gt; where this time "rbs" and "&lt;n&gt;" are squished together. Step 4 above has a space between the "rbs" and the "&lt;n&gt;". This, in some manner, starts the East server(s) and another GUI appears. There are various buttons - mostly initially yellow. I am supposed to wait 10-15 seconds for them (well some of them) to turn green.</li>
92
93   <li>Next I run java [type of test] -run -name &lt;name of test&gt;.</li>
94 </ol>
95
96 <p>At this point I'd like to ask some questions:</p>
97
98 <ol>
99   <li>Does the "rbs &lt;n&gt;" command and the "rbs&lt;n&gt;" parameter have to be the same with respect to &lt;n&gt;? <font color=red>Yes, the choice should be the same with regards to the rbs/rnc and <n>  The first is used to ssh to the correct ceast blade, the second is used to execute the east application with the correct settings for testing that particular node.  The second command is also what creates the lock file indicating you are currently using that resource (the box changes from green to red in the TCL script).</font></li>
100
101   <li>How can I programmatically determine if the desired "rbs &lt;n&gt;" unit is indeed green?<font color=red>There is a command line tool called elock that prints the status of each device. The DUT name will only be present if it is currently locked.</font></li>
102
103   <li>What is [type of test]? From the <i>Command Line in EAST</i> document I have ascertained the following "types" of tests:
104     <ul>
105       <li>LoadTCRunner <font color=red>The type of test which is run is called a Test Case or “TC”, it is run in Load which means it can be run with multiple contexts.</font></li>
106
107       <li>RegressionRunner <font color=red>Same as above, except the test is run as a single context</font></li>
108
109       <li>RegressionLoadRunner <font color=red>Not used in our current implementation</font></li>
110
111       <li>RegressionTSRunner <font color=red>This command runs Test Suites or “TS”</font></li>
112     </ul>
113   </li>
114 </ol>
115
116 <blockquote>
117 <p>From what I can tell, and from an IM with Ross, there appears to be the following relationship:</p>
118 </blockquote>
119
120 <blockquote>
121   <table border="1" cellpadding="2" cellspacing="0" width="100%" bgcolor=white>
122     <tbody>
123       <tr>
124         <th bgcolor="#339999" valign="top"><font color="#ffffff">Java Command<br>
125         </font></th>
126         <th bgcolor="#339999" valign="top"><font color="#ffffff">-name<br>
127         </font></th>
128         <th bgcolor="#339999" valign="top"><font color="#ffffff">Path<br>
129         </font></th>
130         <th bgcolor="#339999" valign="top"><font color="#ffffff">Comments<br>
131         </font></th>
132       </tr>
133       <tr>
134         <td valign="top">LoadTCRunner<br>
135         </td>
136         <td valign="top">&lt;test&gt;.profile<br>
137         </td>
138         <td valign="top">/simdev/tc_data/tc/profiles/load<br>
139         </td>
140         <td valign="top"><br>
141         </td>
142       </tr>
143       <tr>
144         <td valign="top">RegressionRunner<br>
145         </td>
146         <td valign="top">&lt;test&gt;.profile<br>
147         </td>
148         <td valign="top">/simdev/tc_data/tc/profiles/tc<br>
149         </td>
150         <td valign="top"><br>
151         </td>
152       </tr>
153       <tr>
154         <td valign="top">RegressionLoadRunner<br>
155         </td>
156         <td align="center" valign="top">???<br>
157         </td>
158         <td align="center" valign="top">???<br>
159         </td>
160         <td valign="top">Not used?<br>
161         </td>
162       </tr>
163       <tr>
164         <td valign="top">RegressionTSRunner<br>
165         </td>
166         <td valign="top">&lt;test&gt;.profile<br>
167         </td>
168         <td valign="top">/simdev/tc_data/ts/profiles/ts<br>
169         </td>
170         <td valign="top"><br>
171         </td>
172       </tr>
173     </tbody>
174   </table>
175
176   <p><b>Note:</b> Path is important as you cannot specify -path to the java command. <font color=red.True, but you can specify a path past the default directory in the –name argument.  A file at /simdev/tc_data/tc/profiles/load/RBS_SIM/TC_test.profile can be specified with –name “RBS_SIM/TC_test.profile”</font></p>
177 </blockquote>
178
179 <p>Finally, according to the <i>Command Line in EAST</i> document there is a -flag parameter which states:</p>
180
181 <blockquote>
182   <dl>
183     <dt><b>-flag</b></dt>
184     <dd>If this argument is used the runner will quit when the load engine exits</dd>
185   </dl>
186 </blockquote>
187
188 <p>Can this be used to block while the test is being run and is the exit status properly set to indicate success or failure?</p>
189
190 <p><font color=red>Yes, it will block when the test is run and exit when it is finished, however in tests yesterday it doesn’t seem to matter whether the test passed or failed, it always returns 0.  Also, there will be cases in which scripts that we run are designed to never exit, so the process would have to be killed after meeting a set of criteria.</font></p>
191                               
192                               <p class="entry-footer">
193                                  <span class="post-footers">Posted by  at  1:32 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000694.html">Permalink</a>
194                                  
195                                  | <a href="http://defaria.com/blogs/Status/archives/000694.html#trackback">TrackBacks (0)</a>
196                               </p>
197                            </div>
198                         </div>
199                      </div>
200                      
201                   </div>
202                </div>
203             </div>
204          </div>
205       </div>
206    </div>
207 </body>
208 </html>