Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to change default status on new test run from 'Running' to 'Stopped'?

10 views
Skip to first unread message

rbad...@gmail.com

unread,
May 21, 2015, 4:36:49 PM5/21/15
to
Howdy...

I hope someone is still reading these posts...they are very helpful.

I have Testopia 2.5 & Bugzilla 4.4 on Windows server.

When I create new test runs, the status is 'Running' by default and I want to change it to 'Stopped'. I use this data to track the time spend testing the specific test runs.

thanks,
rich

richard...@comcast.net
510.589.4035

Gregary Hendricks

unread,
May 29, 2015, 11:43:49 AM5/29/15
to rbad...@gmail.com, Support Webtools
It has been a while but I recall there was a default status in the
settings. Perhaps that was only for creating test cases though. If it is
not there, it should be pretty simple to set it in the code that crates a
new test-case-run. Do a search for RUNNING in the code. It will probably be
in TestCaseRun.pm or TestRun.pm. Hope this helps.

++Greg
> _______________________________________________
> support-webtools mailing list
> support-...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/support-webtools
>

Gregary Hendricks

unread,
Jun 30, 2015, 3:28:10 PM6/30/15
to Richard Aronson, Support Webtools
That may only affect new test runs. If you want to update existing
testcaseruns, you will have to update them in the database.

The place in the code you need to alter is in the TestRun.pm module in the
lib directory. LOook for the add_case_run method. Change $status ||=IDLE to
$status ||=STOPPED.

sub add_case_run {
my $self = shift;
my ($case_id, $sortkey, $status) = @_;
$status ||=IDLE;
trick_taint($case_id);
return 0 if $self->check_case($case_id);
my $case = Bugzilla::Extension::Testopia::TestCase->new($case_id);
$sortkey = $case->sortkey unless $sortkey;


++Greg


On Mon, Jun 29, 2015 at 5:51 PM, Richard Aronson <rbad...@gmail.com>
wrote:

> Hi Greg,
>
> Thank you so much for your help...
>
> I looked in both files and could not find an "obvious" place to update
> this default to 'Stopped'. I made some changes but nothing seemed to be
> the correct one. Do you have any other ideas or some other place I can
> look?
>
> Is anyone still updating his code and/or fixing bugs?
>
> Best Regards,
> rich
>
>
> On Fri, May 29, 2015 at 8:43 AM, Gregary Hendricks <greg...@gmail.com>
> wrote:
>
>> It has been a while but I recall there was a default status in the
>> settings. Perhaps that was only for creating test cases though. If it is
>> not there, it should be pretty simple to set it in the code that crates a
>> new test-case-run. Do a search for RUNNING in the code. It will probably be
>> in TestCaseRun.pm or TestRun.pm. Hope this helps.
>>
>> ++Greg
>>
>> On Thu, May 21, 2015 at 2:36 PM, <rbad...@gmail.com> wrote:
>>
0 new messages