Skip to content

Instantly share code, notes, and snippets.

View abstatic's full-sized avatar

Abhishek Shrivastava abstatic

View GitHub Profile
cdac407412554f73b993155a5666a2d5 http://apply.bridge.academy #
@abstatic
abstatic / gsoc_proposal.md
Last active January 1, 2019 08:44
Gsoc proposal abhishek
@abstatic
abstatic / tests.py
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
driver.get("http://localhost:8080/")
self.login(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
Parameters:
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):
"""
Test#1
This test is for checking whether the page is loading or not
"""
print "Test#1 isSegAnnUp ?"
driver = self.driver
driver.get("http://localhost:8080")
assert "SegAnnDB" in driver.title