<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dw="https://www.dreamwidth.org">
  <id>tag:dreamwidth.org,2009-05-01:155008</id>
  <title>Some experimental notes</title>
  <subtitle>yljatlhQo'! QIch lo'laltbebej!</subtitle>
  <author>
    <name>adric</name>
  </author>
  <link rel="alternate" type="text/html" href="https://adric.dreamwidth.org/"/>
  <link rel="self" type="text/xml" href="https://adric.dreamwidth.org/data/atom"/>
  <updated>2010-01-06T18:49:50Z</updated>
  <dw:journal username="adric" type="personal"/>
  <entry>
    <id>tag:dreamwidth.org,2009-05-01:155008:11972</id>
    <link rel="alternate" type="text/html" href="https://adric.dreamwidth.org/11972.html"/>
    <link rel="self" type="text/xml" href="https://adric.dreamwidth.org/data/atom/?itemid=11972"/>
    <title>Let's leverage RT's cli to create the test env by script</title>
    <published>2010-01-06T18:49:50Z</published>
    <updated>2010-01-06T18:49:50Z</updated>
    <category term="cli"/>
    <category term="software testing"/>
    <category term="request tracker"/>
    <dw:security>public</dw:security>
    <dw:reply-count>0</dw:reply-count>
    <content type="html">&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="cut-wrapper"&gt;&lt;span style="display: none;" id="span-cuttag___1" class="cuttag"&gt;&lt;/span&gt;&lt;b class="cut-open"&gt;(&amp;nbsp;&lt;/b&gt;&lt;b class="cut-text"&gt;&lt;a href="https://adric.dreamwidth.org/11972.html#cutid1"&gt;Some config snips, scripts, and explanation on how to use RT'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="cut-close"&gt;&amp;nbsp;)&lt;/b&gt;&lt;/span&gt;&lt;div style="display: none;" id="div-cuttag___1" aria-live="assertive"&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="a newer still Q than thee"&lt;br /&gt;&lt;br /&gt;test_queues = [&lt;br /&gt;        { :qname =&amp;gt; 'External', :qdesc =&amp;gt; 'External ticket Queue for Rt testenv' },&lt;br /&gt;        { :qname =&amp;gt; 'Helpdesk', :qdesc =&amp;gt; 'Helpdesk ticket Queue for Rt testenv' },&lt;br /&gt;        { :qname =&amp;gt; 'Oversight', :qdesc =&amp;gt; 'Oversight ticket Queue for Rt testenv' },&lt;br /&gt;]&lt;br /&gt;&lt;br /&gt;test_queues.each { |tq|&lt;br /&gt;        `bin/rt create -t queue set name=\"#{tq[:qname]}\" description=\"#{tq[:qdesc]}\"`&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'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="http://www.gossamer-threads.com/lists/rt/users/61505?do=post_view_threaded"&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="https://www.dreamwidth.org/tools/commentcount?user=adric&amp;ditemid=11972" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
  <entry>
    <id>tag:dreamwidth.org,2009-05-01:155008:11293</id>
    <link rel="alternate" type="text/html" href="https://adric.dreamwidth.org/11293.html"/>
    <link rel="self" type="text/xml" href="https://adric.dreamwidth.org/data/atom/?itemid=11293"/>
    <title>My test environment for RT is starting to take shape</title>
    <published>2009-12-31T14:18:42Z</published>
    <updated>2009-12-31T14:19:23Z</updated>
    <category term="experimental design"/>
    <category term="perl"/>
    <category term="software testing"/>
    <category term="request tracker"/>
    <dw:security>public</dw:security>
    <dw:reply-count>2</dw:reply-count>
    <content type="html">So, I'm a few baby steps closer to having a test environment for the work I'm doing with RT (the awesome Request Tracker software from Jesse and his bunch of misfit geniuses over at bestpractical.com) I'm not hacking on the code of RT directly, so my testing requirements aren'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="cut-wrapper"&gt;&lt;span style="display: none;" id="span-cuttag___1" class="cuttag"&gt;&lt;/span&gt;&lt;b class="cut-open"&gt;(&amp;nbsp;&lt;/b&gt;&lt;b class="cut-text"&gt;&lt;a href="https://adric.dreamwidth.org/11293.html#cutid1"&gt;Exposition, explanations&lt;/a&gt;&lt;/b&gt;&lt;b class="cut-close"&gt;&amp;nbsp;)&lt;/b&gt;&lt;/span&gt;&lt;div style="display: none;" id="div-cuttag___1" aria-live="assertive"&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Here'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="http://search.cpan.org/~rjbs/MIME-Lite-3.027/lib/MIME/Lite.pm"&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'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="http://127.0.0.1:8888"&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'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'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="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"&gt;RT Essentials&lt;/a&gt;&lt;img src="http://www.assoc-amazon.com/e/ir?t=adrnet-20&amp;amp;l=as2&amp;amp;o=1&amp;amp;a=0596006683" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /&gt;, or the wiki, but from some of Jesse's slides from a boot camp that turned up in Google's cache.&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=adric&amp;ditemid=11293" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
</feed>
