Closed Bug 476236 Opened 16 years ago Closed 15 years ago

Mozmill test for check top site - Amazon

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: whimboo, Assigned: whimboo)

References

()

Details

(Whiteboard: [mozmill-smokestest][mozmill-layout])

Attachments

(2 files, 3 obsolete files)

Attached patch Patch v1 (obsolete) — Splinter Review
The following test checks the Amazon website for several elements. That's the only thing we can do in MozMill. With the existing reftests for the top sites, layout issues will be already covered.
Attachment #359859 - Flags: review?(ctalbert)
Depends on: 475719, 476225
Blocks: 476231
No longer blocks: 476231
Depends on: 476231
No longer depends on: 475719
No longer depends on: 476231
Depends on: 476231
This looks really good, Henrik. I have a couple of comments though before deciding how to review it: * Shouldn't the delayed* functions go into a shared module? They seem like they would be just the right thing for a shared module. * While I do think this test is good, I'd love to see the test expanded to do the following: 1. Click the first thing that you can buy on the site and add it to the cart 2. Then in the last step, open the cart and ensure that the thing is there. This would test that the basic functionality of the web application of amazon works, which is enough for us, I believe. The problem here is whether or not their page is crafted such that there is a general, repeatable way to grab that first element and click "add to cart". Does that exist? Once we get these issues sorted, I'll know how to review this test.
(In reply to comment #1) > * Shouldn't the delayed* functions go into a shared module? They seem like > they would be just the right thing for a shared module. The question is should this behavior not better integrated into MozMill itself? All tests will run into this problem when handling lazily loaded content. This doesn't only apply for content but also chrome elements - see the bookmarkEditPanel. Mikeal and Adam, what do you both think? > * While I do think this test is good, I'd love to see the test expanded to do > the following: > 1. Click the first thing that you can buy on the site and add it to the cart > 2. Then in the last step, open the cart and ensure that the thing is there. > > This would test that the basic functionality of the web application of amazon > works, which is enough for us, I believe. The problem here is whether or not > their page is crafted such that there is a general, repeatable way to grab that > first element and click "add to cart". Does that exist? I already had those steps in my test but decided to remove them again because elements varies between different categories. I did some further investigations and it looks like we can use it when we definitely get results from the same category each time. I've modified the second search to "The Police CD" which will return a list of audio cd's. That should work and doesn't fail on my side. I'll attach an updated version of the patch.
Attached patch Patch v2 (with cart check) (obsolete) — Splinter Review
Attachment #359859 - Attachment is obsolete: true
Attachment #360288 - Flags: review?(ctalbert)
Attachment #359859 - Flags: review?(ctalbert)
Sorry, missed a qrefresh.
Attachment #360288 - Attachment is obsolete: true
Attachment #360289 - Flags: review?(ctalbert)
Attachment #360288 - Flags: review?(ctalbert)
(In reply to comment #2) > (In reply to comment #1) > > * Shouldn't the delayed* functions go into a shared module? They seem like > > they would be just the right thing for a shared module. > > The question is should this behavior not better integrated into MozMill itself? > All tests will run into this problem when handling lazily loaded content. This > doesn't only apply for content but also chrome elements - see the > bookmarkEditPanel. Mikeal and Adam, what do you both think? > All right, let's open another bug to settle this issue, and leave them in the test as is. > > * While I do think this test is good, I'd love to see the test expanded to do > > the following: > > 1. Click the first thing that you can buy on the site and add it to the cart > > 2. Then in the last step, open the cart and ensure that the thing is there. > > > > This would test that the basic functionality of the web application of amazon > > works, which is enough for us, I believe. The problem here is whether or not > > their page is crafted such that there is a general, repeatable way to grab that > > first element and click "add to cart". Does that exist? > > I already had those steps in my test but decided to remove them again because > elements varies between different categories. I did some further investigations > and it looks like we can use it when we definitely get results from the same > category each time. I've modified the second search to "The Police CD" which > will return a list of audio cd's. That should work and doesn't fail on my side. > Sweet, looks good. r=ctalbert Thanks!
Attachment #360289 - Flags: review?(ctalbert) → review+
(In reply to comment #5) > > The question is should this behavior not better integrated into MozMill itself? > > All tests will run into this problem when handling lazily loaded content. This > > doesn't only apply for content but also chrome elements - see the > > bookmarkEditPanel. Mikeal and Adam, what do you both think? > > > All right, let's open another bug to settle this issue, and leave them in the > test as is. Filed as bug 477135. Changeset: http://hg.mozilla.org/qa/mozmill-tests/rev/ff329b4c0661
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Depends on: 477135
Resolution: --- → FIXED
I had to update the test. Let's reopen this bug for now. I think its better to track changes in the same bug. Patch is following...
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attached patch Follow-up patch (obsolete) — Splinter Review
What does the patch update: * Remove all cookies when test has been finished. The currently checked-in version will fail after the second run. * Now we can select a category from the select field * The search field at the bottom has been removed by Amazon Now it looks much cleaner and the only bug I have to wait is for the delayed action.
Attachment #372280 - Flags: review?(ctalbert)
Attachment #372280 - Attachment description: Patch v3.0 → Follow-up patch
Attachment #360289 - Attachment description: Patch v2.1 → Patch v2.1 (checked-in)
Ok, some more cleaning up for this test: * Removed delayedClick function in favor of delayedAsserNode and our future work in bug 477135
Attachment #372280 - Attachment is obsolete: true
Attachment #372283 - Flags: review?(ctalbert)
Attachment #372280 - Flags: review?(ctalbert)
Dependencies were introduced and broken elements fixed. We can call it fixed with: http://hg.mozilla.org/qa/mozmill-tests/rev/9554a9d2373f
Status: REOPENED → RESOLVED
Closed: 16 years ago15 years ago
Resolution: --- → FIXED
Attachment #372283 - Flags: review?(ctalbert)
Depends on: 516729
No failures anymore with bug 516729 fixed.
Status: RESOLVED → VERIFIED
Mass move of Mozmill Test related project bugs to newly created components. You can filter out those emails by using "Mozmill-Tests-to-MozillaQA" as criteria.
Component: General → Mozmill Tests
Product: Firefox → Mozilla QA
QA Contact: general → mozmill-tests
Version: 3.5 Branch → unspecified
Summary: [mozmill] test for check top site - Amazon → Mozmill test for check top site - Amazon
Whiteboard: [mozmill-smokestest][mozmill-layout]
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: