Closed Bug 656388 Opened 13 years ago Closed 13 years ago

Rename endurance tests to support running them as restart tests

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: davehunt, Assigned: davehunt)

References

Details

(Whiteboard: [mozmill-endurance])

Attachments

(1 file, 3 obsolete files)

We want to restart the application between each endurance test by default. In order for this we will need to rename the tests appropriately.
Assignee: nobody → dave.hunt
Attachment #531690 - Flags: review?(anthony.s.hughes)
Comment on attachment 531690 [details] [diff] [review]
Rename endurance tests to support running them as restart tests. v1

Sorry, this inadvertently contains the patch from bug 656258. I'll fix that and provide a new version soon.
Attachment #531690 - Flags: review?(anthony.s.hughes) → review-
This patch should be cleaner.
Attachment #531690 - Attachment is obsolete: true
Attachment #531693 - Flags: review?(anthony.s.hughes)
Comment on attachment 531693 [details] [diff] [review]
Rename endurance tests to support running them as restart tests. v1

Review of attachment 531693 [details] [diff] [review]:
-----------------------------------------------------------------

This looks okay to me -- r+
Attachment #531693 - Flags: review?(anthony.s.hughes) → review+
Blocks: 656393
Attachment #531693 - Flags: review?(hskupin)
Comment on attachment 531693 [details] [diff] [review]
Rename endurance tests to support running them as restart tests. v1

>+++ b/tests/endurance/testAddons/test1.js

I don't think this level is enough. If you plan to have more tests for a specific subgroup you should add one more level. Also think about that in some circumstances it would be necessary to have multiple tests for one specific restart test.
Attachment #531693 - Flags: review?(hskupin) → review-
(In reply to comment #5)
> Comment on attachment 531693 [details] [diff] [review] [review]
> Rename endurance tests to support running them as restart tests. v1
> 
> >+++ b/tests/endurance/testAddons/test1.js
> 
> I don't think this level is enough. If you plan to have more tests for a
> specific subgroup you should add one more level. Also think about that in
> some circumstances it would be necessary to have multiple tests for one
> specific restart test.

Do you have any suggestions? Should I make the current depth more descriptive or introduce a further level of depth? One proposal is below:

tests/endurance/
  testAddons/testOpenAndCloseAddonManager/test1.js
  testTabbedBrowsing/testOpenNewTabs/test1.js
  testTabView/testOpenNewTabs/test1.js
  testTabView/testSwitchTabs/test1.js
This proposal looks fine. We only have to make sure to have the subgroups as separate subfolders.
It's not currently possible to add this additional level. I have raised bug 657798 to ensure we revisit this when Mozmill 2.0 is released, however for now we should land this as-is (assuming it otherwise passes review).
Comment on attachment 531693 [details] [diff] [review]
Rename endurance tests to support running them as restart tests. v1

>diff --git a/tests/endurance/testAddons/test1.js b/tests/endurance/testAddons/test1.js

We would still have to give the subfolder a meaningful name. In this case s/testAddons/testOpenCloseAddonsManager/. Otherwise how would you name the next test which is add-ons related? Same applies to all the other tests. It's not ideal right now, but we should start this move in a good and clean state.
(In reply to comment #9)
> Comment on attachment 531693 [details] [diff] [review] [review]
> Rename endurance tests to support running them as restart tests. v1
> 
> >diff --git a/tests/endurance/testAddons/test1.js b/tests/endurance/testAddons/test1.js
> 
> We would still have to give the subfolder a meaningful name. In this case
> s/testAddons/testOpenCloseAddonsManager/. Otherwise how would you name the
> next test which is add-ons related? Same applies to all the other tests.
> It's not ideal right now, but we should start this move in a good and clean
> state.

Done.
Attachment #531693 - Attachment is obsolete: true
Attachment #533214 - Flags: review?(hskupin)
Comment on attachment 533214 [details] [diff] [review]
Rename endurance tests to support running them as restart tests. v1.1

>+++ b/tests/endurance/testEnterAndLeavePrivateBrowsing/test1.js

As discussed with Dave on IRC we should name those sub folder like 'testPrivateBrowsing_EnterAndLeave'. That way we have the right sorting in that folder per subgroup and makes it easier for us later to fold them into their own subfolder once Mozmill 2 has been released.
Attachment #533214 - Flags: review?(hskupin) → review-
(In reply to comment #11)
> Comment on attachment 533214 [details] [diff] [review] [review]
> Rename endurance tests to support running them as restart tests. v1.1
> 
> >+++ b/tests/endurance/testEnterAndLeavePrivateBrowsing/test1.js
> 
> As discussed with Dave on IRC we should name those sub folder like
> 'testPrivateBrowsing_EnterAndLeave'. That way we have the right sorting in
> that folder per subgroup and makes it easier for us later to fold them into
> their own subfolder once Mozmill 2 has been released.

Done.
Attachment #533214 - Attachment is obsolete: true
Attachment #533484 - Flags: review?(hskupin)
Attachment #533484 - Flags: review?(hskupin) → review+
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: