Skip to content

Instantly share code, notes, and snippets.

Marlena Compton Marlena

Block or report user

Report or block Marlena

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Marlena
Marlena / gist:1108040
Created Jul 26, 2011
locators and their vagueries
View gist:1108040
Preferred hierarchy for locators:
id/name/css/xpath
@Marlena
Marlena / gist:1093866
Created Jul 19, 2011
Where stuff is in zamboni
View gist:1093866
html pages for adding ids:
apps/addons/templates/addons/impala/
css media/css
@Marlena
Marlena / validator
Created Jul 19, 2011
process of adding validator test
View validator
The process of adding a validator test
When a validator has a problem, someone (Jorge probably) files a bug with the error message.
Matt isolates the bug and writes a unit test for it.
A functional test also needs to be written. The functional test runs the addon through the validator and checks that the same error messages does not show up.
Example:
Here is a bug: https://bugzilla.mozilla.org/show_bug.cgi?id=659330
View Marks and builds
This is an attempt to sort out having tests for zamboni pages and impala pages in one codebase.
Tests will get marks:
@pytest.mark.impala
def test_the_header_layout(self, testsetup):
@pytest.mark.zamboni
def test_the_header_layout(self, testsetup):
@Marlena
Marlena / gist:1018028
Created Jun 10, 2011
Tree terminology
View gist:1018028
directed/digraph - edges are ordered, have direction
antiparallel edges - edges that go both ways are ok. should never have parallel
@Marlena
Marlena / code review checklist
Created Jun 8, 2011
What I check for when I do code review for AMO selenium tests
View code review checklist
Filename matches first classname
* filename is lowercase with underscores between words
* class name is camelcase and THE SAME as file name
Files with tests do not contain "self.selenium"
Locators are in CSS - (btw css can do children)
http://www.w3.org/TR/CSS2/selector.html
@Marlena
Marlena / gist:930398
Created Apr 20, 2011
locating unordered list through dom in js
View gist:930398
Node.lastChild-1 for max page number. (next link is last)
// Access single unordered list: [0] index
var unorderedList = document.getElementsByTagName('ul')[0];
// Create Node list of all list items within the UL:
var allListItems = unorderedList.getElementsByTagName('li');
// Now, we can loop through each list item using a FOR loop:
View adding info as I blunder my way through git...
Workflow:
From forked & updated repo:
create branch
Either:
-git branch litmus_11759_test_blank_search (create branch)
-git checkout litmus_11759_test_blank_search (switch to that branch)
or:
-git checkout -b litmus_11759_test_blank_search (create & switch to branch)
View json error
import pagerank
4 import sys
5 import simplejson
6
7 file = sys.argv[1]
8 json_data = open(file)
9 #print json_data
10 pages_list = json.load(json_data)
11 print pages_listt
12 print "#######"
View Starting Watir & Getting the Links from a Page
You can’t perform that action at this time.