Closed Bug 676827 Opened 14 years ago Closed 14 years ago

Add preference to run endurance tests as non-restart tests

Categories

(Mozilla QA Graveyard :: Mozmill Crowd Extension, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: davehunt, Assigned: davehunt)

References

Details

Attachments

(1 file, 2 obsolete files)

It's possible for users of the command line automation to specify non-restart to disable restarting between each test. We should add this as a preference in Mozmill Crowd.
Only requesting feedback for now as this is my first work on Mozmill Crowd, and I am having difficulties getting any version of Crowd to run locally at the moment.
Assignee: nobody → dave.hunt
Attachment #551032 - Flags: feedback?(hskupin)
Comment on attachment 551032 [details] [diff] [review] Add preference to run endurance tests as non-restart tests. v1.0 >+ var restart = Utils.getPref("extensions.mozmill-crowd.endurance.restart", true); [..] >+ >+ if (!restart) >+ args = args.concat("--no-restart"); I would prefer if we do not switch the meaning of the flag. >+ <hbox align="baseline"> >+ <checkbox id="restart" >+ label="&enduranceTestrunRestart.label;" >+ accesskey="&enduranceTestrunRestart.accesskey;" >+ preference="extensions.mozmill-crowd.endurance.restart" >+ onsynctopreference=""/> Why are you using 'onsynctopreference'? Otherwise looks fine.
Attachment #551032 - Flags: feedback?(hskupin) → feedback+
(In reply to Henrik Skupin (:whimboo) from comment #2) > Comment on attachment 551032 [details] [diff] [review] [diff] [details] [review] > Add preference to run endurance tests as non-restart tests. v1.0 > > >+ var restart = Utils.getPref("extensions.mozmill-crowd.endurance.restart", true); > [..] > >+ > >+ if (!restart) > >+ args = args.concat("--no-restart"); > > I would prefer if we do not switch the meaning of the flag. I understand and generally agree, however I feel that in this case it makes for a better user experience. Restarts occur by default, and a checked box to indicate this with the ability for a user to uncheck is a nicer design (imo) than having an unchecked box that when checked disables restarts. > >+ <hbox align="baseline"> > >+ <checkbox id="restart" > >+ label="&enduranceTestrunRestart.label;" > >+ accesskey="&enduranceTestrunRestart.accesskey;" > >+ preference="extensions.mozmill-crowd.endurance.restart" > >+ onsynctopreference=""/> > > Why are you using 'onsynctopreference'? Copy/paste fail from the trustUnsecure checkbox -- does that even need it?
Updated and tested successfully.
Attachment #551032 - Attachment is obsolete: true
Attachment #554029 - Flags: review?(hskupin)
Comment on attachment 554029 [details] [diff] [review] Add preference to run endurance tests as non-restart tests. v1.1 >+ <hbox align="baseline"> >+ <checkbox id="restart" >+ label="&enduranceTestrunRestart.label;" >+ accesskey="&enduranceTestrunRestart.accesskey;" >+ preference="extensions.mozmill-crowd.endurance.restart"/> >+ </hbox> nit: seems like the indentation got off here. >+<!ENTITY enduranceTestrunRestart.label "Restart between each test"> >+<!ENTITY enduranceTestrunRestart.accesskey "R"> nit: align both values to each other. Otherwise I'm ok with your proposal re restart vs. no-restart. Looks good. Lets get the patch updated and I can check it in.
Attachment #554029 - Flags: review?(hskupin) → review+
(In reply to Henrik Skupin (:whimboo) from comment #5) > Comment on attachment 554029 [details] [diff] [review] > Add preference to run endurance tests as non-restart tests. v1.1 > > >+ <hbox align="baseline"> > >+ <checkbox id="restart" > >+ label="&enduranceTestrunRestart.label;" > >+ accesskey="&enduranceTestrunRestart.accesskey;" > >+ preference="extensions.mozmill-crowd.endurance.restart"/> > >+ </hbox> > > nit: seems like the indentation got off here. Done. > >+<!ENTITY enduranceTestrunRestart.label "Restart between each test"> > >+<!ENTITY enduranceTestrunRestart.accesskey "R"> > > nit: align both values to each other. Done.
Attachment #554029 - Attachment is obsolete: true
Attachment #554391 - Flags: review?(hskupin)
Attachment #554391 - Flags: review?(hskupin) → review+
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: