Closed Bug 500314 Opened 15 years ago Closed 15 years ago

Mozmill test for the security notification bar

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: aakashd, Assigned: aakashd)

References

Details

(Whiteboard: [mozmill-smoketest][mozmill-security])

Attachments

(1 file, 2 obsolete files)

Attached file testSecNotification.js (obsolete) (deleted) —
The following test goes to different http* url's of Verisign's website and verifies security notifications offered by the browser. It references litmus testcases: * Testcase ID #5920 - [security] Security notification
Attachment #384995 - Flags: review?(hskupin)
Comment on attachment 384995 [details] testSecNotification.js Wow, this test looks great! There are only some general rules which needs to be applied. The functionality is perfect. >var testSecNotification = function() { > > // Close all tabs and open a blank page > UtilsAPI.closeAllTabs(controller); Please use an indentation of 2 white spaces. Those should be spaces and no tabs. Please check your editor. There are tabs all over the place. Most times it is helpful to show the white spaces inside the editor. > controller.open('https://www.verisign.com/'); > controller.waitForPageLoad(controller.tabs.activeTab); > var aboutVer = new elementslib.Link(controller.tabs.activeTab, "About VeriSign"); > UtilsAPI.delayedAssertNode(controller, aboutVer); Please add an emtpy row between different actions. Further you don't need delayedAssertNode anymore for elements on a web page. This has changed because waitForPageLoad has been fixed. You can simply call controller.assertNode. > // Assign Elements needed for verification for Https sites nit: Please be consistent in the use of die different case. > var cssSecInfo = controller.window.getComputedStyle(controller.window.document.getElementById("security-button"), ""); Can you name it cssSecButton? > if (cssSecInfo.getPropertyValue('list-style-image') != 'url(chrome://browser/skin/Secure-statusbar.png)') { > throw 'Error: Security-Button image Http incorrectly assigned as: ' + cssSecInfo.getPropertyValue('list-style-image'); There is no need to place "Error: " as prefix. And please just throw a simple string like "Security button in status bar not visible". This applies to other throws too. > // Go to the https verisign redirect > controller.open('https://verisign.com'); > UtilsAPI.delayedAssertNode(controller, aboutVer); Please use waitForPageLoad here. > // Verify security functionality with https verisign redirect > var certLabel = new elementslib.ID(controller.tabs.activeTab, "cert_domain_link"); > > UtilsAPI.delayedAssertNode(controller, new elementslib.ID(controller.tabs.activeTab, "getMeOutOfHereButton")); > UtilsAPI.delayedAssertNode(controller, new elementslib.ID(controller.tabs.activeTab, "exceptionDialogButton")); This will be normal assertNode checks.
Attachment #384995 - Flags: review?(hskupin) → review-
Attached patch testSecurity/testSecNotification.js (obsolete) (deleted) — Splinter Review
Ok, changes made per last review.
Assignee: nobody → adesai
Attachment #384995 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #385112 - Flags: review?(hskupin)
Attachment #385112 - Attachment is obsolete: true
Attachment #385118 - Flags: review?(hskupin)
Attachment #385112 - Flags: review?(hskupin)
Comment on attachment 385118 [details] [diff] [review] testSecurity/testSecNotification.js I had to fix the assertNode calls because they were wrong.
Attachment #385118 - Flags: review?(hskupin)
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
In the last check for the cert error page the waitForPageLoad times out due to bug 503277. That's why this test takes much longer as expected.
Depends on: 503277
I updated the test and changed the timeout of the waitForPageLoad function call to 1000. So we don't have to wait 30s anymore. http://hg.mozilla.org/qa/mozmill-tests/rev/3832a30036ef
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: Security → Mozmill Tests
Product: Firefox → Mozilla QA
QA Contact: firefox → mozmill-tests
Version: Trunk → unspecified
Status: RESOLVED → VERIFIED
Summary: [Mozmill] - Security notification → Mozmill test for the security notification bar
Whiteboard: [mozmill-smoketest][mozmill-security]
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: