<?xml version='1.0' encoding='utf-8' ?>

<rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/' xmlns:atom10='http://www.w3.org/2005/Atom'>
<channel>
  <title>Some experimental notes</title>
  <link>https://adric.dreamwidth.org/</link>
  <description>Some experimental notes - Dreamwidth Studios</description>
  <lastBuildDate>Wed, 06 Jan 2010 18:49:50 GMT</lastBuildDate>
  <generator>LiveJournal / Dreamwidth Studios</generator>
  <lj:journal>adric</lj:journal>
  <lj:journaltype>personal</lj:journaltype>
  <image>
    <url>https://v2.dreamwidth.org/108575/155008</url>
    <title>Some experimental notes</title>
    <link>https://adric.dreamwidth.org/</link>
    <width>100</width>
    <height>75</height>
  </image>

<item>
  <guid isPermaLink='true'>https://adric.dreamwidth.org/11972.html</guid>
  <pubDate>Wed, 06 Jan 2010 18:49:50 GMT</pubDate>
  <title>Let&apos;s leverage RT&apos;s cli to create the test env by script</title>
  <link>https://adric.dreamwidth.org/11972.html</link>
  <description>&lt;em&gt;Some notes on the cli excerpted from my work on a build doc&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;cut-wrapper&quot;&gt;&lt;span style=&quot;display: none;&quot; id=&quot;span-cuttag___1&quot; class=&quot;cuttag&quot;&gt;&lt;/span&gt;&lt;b class=&quot;cut-open&quot;&gt;(&amp;nbsp;&lt;/b&gt;&lt;b class=&quot;cut-text&quot;&gt;&lt;a href=&quot;https://adric.dreamwidth.org/11972.html#cutid1&quot;&gt;Some config snips, scripts, and explanation on how to use RT&apos;s cli to create queues, tickets, users, and groups by script so as to make creating the test env easy and repeatable.&lt;/a&gt;&lt;/b&gt;&lt;b class=&quot;cut-close&quot;&gt;&amp;nbsp;)&lt;/b&gt;&lt;/span&gt;&lt;div style=&quot;display: none;&quot; id=&quot;div-cuttag___1&quot; aria-live=&quot;assertive&quot;&gt;&lt;/div&gt;&lt;br /&gt;&lt;tt&gt;&lt;br /&gt;#!/usr/bin/ruby -w&lt;br /&gt;&lt;br /&gt;## Example:&lt;br /&gt;## bin/rt create -t queue set name=NewestQ description=&quot;a newer still Q than thee&quot;&lt;br /&gt;&lt;br /&gt;test_queues = [&lt;br /&gt;        { :qname =&amp;gt; &apos;External&apos;, :qdesc =&amp;gt; &apos;External ticket Queue for Rt testenv&apos; },&lt;br /&gt;        { :qname =&amp;gt; &apos;Helpdesk&apos;, :qdesc =&amp;gt; &apos;Helpdesk ticket Queue for Rt testenv&apos; },&lt;br /&gt;        { :qname =&amp;gt; &apos;Oversight&apos;, :qdesc =&amp;gt; &apos;Oversight ticket Queue for Rt testenv&apos; },&lt;br /&gt;]&lt;br /&gt;&lt;br /&gt;test_queues.each { |tq|&lt;br /&gt;        `bin/rt create -t queue set name=\&quot;#{tq[:qname]}\&quot; description=\&quot;#{tq[:qdesc]}\&quot;`&lt;br /&gt;}&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;and we should easily be able to do the same for some sample users, groups. Unfortunately we can&apos;t add scrips or templates this way, yet.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;sup&gt;2&lt;/sup&gt; &lt;a href=&quot;http://www.gossamer-threads.com/lists/rt/users/61505?do=post_view_threaded&quot;&gt;http://www.gossamer-threads.com/lists/rt/users/61505?do=post_view_threaded&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=adric&amp;ditemid=11972&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://adric.dreamwidth.org/11972.html</comments>
  <category>request tracker</category>
  <category>cli</category>
  <category>software testing</category>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://adric.dreamwidth.org/11293.html</guid>
  <pubDate>Thu, 31 Dec 2009 14:18:42 GMT</pubDate>
  <title>My test environment for RT is starting to take shape</title>
  <link>https://adric.dreamwidth.org/11293.html</link>
  <description>So, I&apos;m a few baby steps closer to having a test environment for the work I&apos;m doing with RT (the awesome Request Tracker software from Jesse and his bunch of misfit geniuses over at bestpractical.com) I&apos;m not hacking on the code of RT directly, so my testing requirements aren&apos;t much aligned with those of the core developers or extension authors (who do make excellent use of the amazing variety of Perl testing frameworks and modules), so I been futzing around at it educationally and I thought it was time to share.&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;cut-wrapper&quot;&gt;&lt;span style=&quot;display: none;&quot; id=&quot;span-cuttag___1&quot; class=&quot;cuttag&quot;&gt;&lt;/span&gt;&lt;b class=&quot;cut-open&quot;&gt;(&amp;nbsp;&lt;/b&gt;&lt;b class=&quot;cut-text&quot;&gt;&lt;a href=&quot;https://adric.dreamwidth.org/11293.html#cutid1&quot;&gt;Exposition, explanations&lt;/a&gt;&lt;/b&gt;&lt;b class=&quot;cut-close&quot;&gt;&amp;nbsp;)&lt;/b&gt;&lt;/span&gt;&lt;div style=&quot;display: none;&quot; id=&quot;div-cuttag___1&quot; aria-live=&quot;assertive&quot;&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Here&apos;s what I have going so far for this:&lt;br /&gt;&lt;br /&gt;&lt;li&gt;mime_lite.pl : tiny Perl script using &lt;a href=&quot;http://search.cpan.org/~rjbs/MIME-Lite-3.027/lib/MIME/Lite.pm&quot;&gt;MIME:Lite&lt;/a&gt; from CPAN to generate full emails as text files&lt;/li&gt;&lt;br /&gt;&lt;li&gt;a development install of RT 3.8.6 on my workstation, configured with : &lt;tt&gt;  ./configure --with-my-user-group --enable-layout=inplace --with-db-type=SQLite --with-devel-mode &lt;/tt&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;which configuration&lt;sup&gt;1&lt;/sup&gt; simplifies a lot of things and enables more debug information&lt;/li&gt;&lt;br /&gt;&lt;li&gt;run with RT&apos;s standalone_httpd on a local high port&lt;/li&gt;&lt;br /&gt;&lt;li&gt;configured to send mail to &lt;tt&gt;/bin/cat &amp;gt;&amp;gt; mail.out&lt;/tt&gt; instead of sendmail&lt;/li&gt;&lt;br /&gt;&lt;li&gt;injecting mail into RT just like a live system would, eg &lt;tt&gt;rt-mailgate -queue General --url &lt;a href=&quot;http://127.0.0.1:8888&quot;&gt;http://127.0.0.1:8888&lt;/a&gt; &amp;lt; nursemail.txt&lt;/tt&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;using tail to watch the logs as I poke things&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;Although I&apos;ve been testing and breaking software my whole life I am still quite new to the craft of software testing and the concepts behind professional QA. In particular there is no innovation (yet) in what I am doing, but the tools of Unix are proving quite helpful and I&apos;m happy with my progress so far. &lt;br /&gt;&lt;br /&gt;&lt;sup&gt;1&lt;/sup&gt;: That configuration script is not from the excellent but dated book &lt;a href=&quot;http://www.amazon.com/gp/product/0596006683?ie=UTF8&amp;amp;tag=adrnet-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=390957&amp;amp;creativeASIN=0596006683&quot;&gt;RT Essentials&lt;/a&gt;&lt;img src=&quot;http://www.assoc-amazon.com/e/ir?t=adrnet-20&amp;amp;l=as2&amp;amp;o=1&amp;amp;a=0596006683&quot; width=&quot;1&quot; height=&quot;1&quot; border=&quot;0&quot; alt=&quot;&quot; style=&quot;border:none !important; margin:0px !important;&quot; /&gt;, or the wiki, but from some of Jesse&apos;s slides from a boot camp that turned up in Google&apos;s cache.&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=adric&amp;ditemid=11293&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://adric.dreamwidth.org/11293.html</comments>
  <category>software testing</category>
  <category>experimental design</category>
  <category>request tracker</category>
  <category>perl</category>
  <lj:security>public</lj:security>
  <lj:reply-count>2</lj:reply-count>
</item>
</channel>
</rss>
