Skip to content

Instantly share code, notes, and snippets.

View abstatic's full-sized avatar

Abhishek Shrivastava abstatic

View GitHub Profile
cdac407412554f73b993155a5666a2d5 #
abstatic /
Last active January 1, 2019 08:44
Gsoc proposal abhishek
abstatic /
Created June 20, 2016 21:55
Upload function
def test030_upload(self):
This test is for checking if we can successfully upload a profile
print "Test#3 Profile upload test"
# login into the app
driver = self.driver
def login(self, driver):
This method is internal to testing framework
It is used to login the user.
Each test requires the user to be logged in already
driver - reference to driver being used
# this is the tricky part
# We have to get the right handle for the correct popup login window
def test010_isSegAnnUp(self):
This test is for checking whether the page is loading or not
print "Test#1 isSegAnnUp ?"
driver = self.driver
assert "SegAnnDB" in driver.title