def test_t_c_view_test_case6_page(self):
        driver = self.driver
        driver.get(self.base_url + "/index.php")
        driver.find_element_by_xpath("//a[contains(text(),'View / Download')]").click()
        driver.find_element_by_xpath("//a[contains(@href, 'view_testcase.php?tID=6')]").click()
        time.sleep(2)
        self.assertEqual("SAMATE Reference Dataset :: TestCase 6", driver.title)
       
        common_ui_tests.testSRDMenu(self, driver, self.verificationErrors)

        try: self.assertEqual("Downloads: ", driver.find_element_by_xpath("//div[@id='content']/div/span").text)
        except AssertionError as e: self.verificationErrors.append(str(e))
        self.assertTrue(common_ui_tests.is_element_present(self, By.XPATH, "//img[@alt='Download this Test Case #6']"))
        try: self.assertEqual("Back to the previous page", driver.find_element_by_xpath("//div[@id='content']/h1/a").text)
        except AssertionError as e: self.verificationErrors.append(str(e))
        try: self.assertEqual("Test Case ID", driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr/td").text)
        except AssertionError as e: self.verificationErrors.append(str(e))
        try: self.assertEqual("Bad / Good / Mixed", driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr[2]/td/strong/acronym").text)
        except AssertionError as e: self.verificationErrors.append(str(e))
        try: self.assertEqual("Author", driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr[3]/td").text)
        except AssertionError as e: self.verificationErrors.append(str(e))
        try: self.assertEqual("Associated test case", driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr[4]/td").text)
        except AssertionError as e: self.verificationErrors.append(str(e))
        try: self.assertEqual("Contributor", driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr[5]/td").text)
        except AssertionError as e: self.verificationErrors.append(str(e))
        try: self.assertEqual("Language", driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr[6]/td").text)
        except AssertionError as e: self.verificationErrors.append(str(e))
        try: self.assertEqual("Type of test case", driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr[7]/td").text)
        except AssertionError as e: self.verificationErrors.append(str(e))
        try: self.assertEqual("Input string", driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr[9]/td/strong/acronym").text)
        except AssertionError as e: self.verificationErrors.append(str(e))
        try: self.assertEqual("Expected Output", driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr[10]/td/strong/acronym").text)
        except AssertionError as e: self.verificationErrors.append(str(e))
        try: self.assertEqual("Instructions", driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr[11]/td/strong/acronym").text)
        except AssertionError as e: self.verificationErrors.append(str(e))
        try: self.assertEqual("Submission date", driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr[12]/td").text)
        except AssertionError as e: self.verificationErrors.append(str(e))
        try: self.assertEqual("Description", driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr[13]/td").text)
        except AssertionError as e: self.verificationErrors.append(str(e))
        try: self.assertEqual("Filename", driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr[14]/td").text)
        except AssertionError as e: self.verificationErrors.append(str(e))
        try: self.assertEqual("Flaw", driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr[15]/td").text)
        except AssertionError as e: self.verificationErrors.append(str(e))
        try: self.assertEqual("6", driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr/td[2]/span").text)
        except AssertionError as e: self.verificationErrors.append(str(e))
        self.assertTrue(common_ui_tests.is_element_present(self, By.XPATH, "//div[@id='content']/table/tbody/tr/td[2]/a/img"))
        self.assertTrue(common_ui_tests.is_element_present(self, By.XPATH, "//div[@id='content']/table/tbody/tr[2]/td[2]/a/img"))
        self.assertTrue(common_ui_tests.is_element_present(self, By.XPATH, "//a[contains(@href, 'testcases/000/000/006/Using_freed_memory.c')]"))
        driver.find_element_by_css_selector("img[alt=\"(?)\"]").click()
        try: self.assertEqual("+ Root\nCWE-398: Indicator of Poor Code Quality\n    CWE-416: Use After Free", driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr[15]/td[2]/ul/li/div").text)
        except AssertionError as e: self.verificationErrors.append(str(e))
        try: self.assertEqual("CWE-416: Use After Free", driver.find_element_by_xpath("//div[@id='flaw_0']/span").text)
        except AssertionError as e: self.verificationErrors.append(str(e))
        driver.find_element_by_css_selector("img[alt=\"(?)\"]").click()
        try: self.assertEqual("Submit a comment", driver.find_element_by_xpath("//a[contains(text(),'Submit a comment')]").text)
        except AssertionError as e: self.verificationErrors.append(str(e))
        try: self.assertEqual("Using_freed_memory.c", driver.find_element_by_xpath("//div[@id='code']/table/tbody/tr/td").text)
        except AssertionError as e: self.verificationErrors.append(str(e))
        
        common_ui_tests.testFooter(self, driver, self.verificationErrors)
    def test_t_c_view_download(self):
        driver = self.driver
        driver.get(self.base_url + "/view.php")
        try: self.assertEqual("SAMATE Reference Dataset :: View all test cases", driver.title)
        except AssertionError as e: self.verificationErrors.append("Wrong title on page %s" %(self.base_url + "/view_testcase.php?tID=148803"))

        common_ui_tests.testSRDBanner(self, self.driver, self.verificationErrors)
        common_ui_tests.testSRDMenu(self, self.driver, self.verificationErrors)
        common_ui_tests.testFooter(self, self.driver, self.verificationErrors)
        
        
        try: self.assertEqual("Test Case ID", driver.find_element_by_xpath("//div[@id='content']/form/table/tbody/tr/td[2]").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Test Case ID' not found on page %s" %(self.base_url + "/view_testcase.php?tID=148803"))
        try: self.assertEqual("Submission Date", driver.find_element_by_xpath("//div[@id='content']/form/table/tbody/tr/td[3]").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Submission Date' not found on page %s" %(self.base_url + "/view_testcase.php?tID=148803"))
        try: self.assertEqual("Language", driver.find_element_by_xpath("//div[@id='content']/form/table/tbody/tr/td[4]").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Language' not found on page %s" %(self.base_url + "/view_testcase.php?tID=148803"))
        try: self.assertEqual("Type of Artifact", driver.find_element_by_xpath("//div[@id='content']/form/table/tbody/tr/td[5]").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Type of Artifact' not found on page %s" %(self.base_url + "/view_testcase.php?tID=148803"))
        try: self.assertEqual("Status", driver.find_element_by_css_selector("acronym[title=\"C: Candidate - A: Approved - D: Deprecated\"]").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Status' not found on page %s" %(self.base_url + "/view_testcase.php?tID=148803"))
        try: self.assertEqual("Description", driver.find_element_by_xpath("//div[@id='content']/form/table/tbody/tr/td[7]").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Description' not found on page %s" %(self.base_url + "/view_testcase.php?tID=148803"))
        try: self.assertEqual("Weakness", driver.find_element_by_xpath("//div[@id='content']/form/table/tbody/tr/td[8]").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Weakness' not found on page %s" %(self.base_url + "/view_testcase.php?tID=148803"))
        try: self.assertEqual("Bad / Good / Mixed", driver.find_element_by_xpath("//div[@id='content']/form/table/tbody/tr/td[9]").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Bad / Good / Mixed' not found on page %s" %(self.base_url + "/view_testcase.php?tID=148803"))

        
        self.driver.find_element_by_xpath("//div[@id='content']/form/table/tbody/tr/td[2]/a/img").click()
        try: self.assertEqual("148803", driver.find_element_by_xpath("//a[contains(@href, 'view_testcase.php?tID=148803')]").text)
        except AssertionError as e: self.verificationErrors.append(str(e))
        self.driver.find_element_by_xpath("//div[@id='content']/form/table/tbody/tr/td[2]/a/img").click()
        try: self.assertEqual("4", driver.find_element_by_xpath("//a[contains(@href, 'view_testcase.php?tID=4')]").text)
        except AssertionError as e: self.verificationErrors.append(str(e))
    def test_t_c_search_download_extended_search_tab(self):
        
        self.driver.get(self.base_url + "/search.php?extended")


        try: self.assertEqual("SAMATE Reference Dataset", self.driver.title)
        except AssertionError as e: self.verificationErrors.append(" Wrong title on page %s" %(self.base_url + "/search.php?extended"))

        common_ui_tests.testSRDBanner(self, self.driver, self.verificationErrors)
        common_ui_tests.testSRDMenu(self, self.driver, self.verificationErrors)
        common_ui_tests.testFooter(self, self.driver, self.verificationErrors)
        common_ui_tests.testTestDownloadMenu(self, self.driver, self.verificationErrors)
        
        try: self.assertEqual("Number (Test case ID):", self.driver.find_element_by_xpath("//div[@id='viewForm']/form/table/tbody/tr/td/div/label/span/strong").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Number (Test case ID):' not found on page %s" %(self.base_url + "/search.php?extended"))
        try: self.assertEqual("Description contains:", self.driver.find_element_by_xpath("//div[@id='viewForm']/form/table/tbody/tr/td/div[2]/label/span/strong").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Description contains:' not found on page %s" %(self.base_url + "/search.php?extended"))
        try: self.assertEqual("Author:", self.driver.find_element_by_xpath("//div[@id='viewForm']/form/table/tbody/tr/td/div[3]/label/span").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Author:' not found on page %s" %(self.base_url + "/search.php?extended"))
        try: self.assertEqual("Contributor:", self.driver.find_element_by_xpath("//div[@id='viewForm']/form/table/tbody/tr/td/div[4]/label/span").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Contributor:' not found on page %s" %(self.base_url + "/search.php?extended"))
        try: self.assertEqual("Bad / Good / Mixed:", self.driver.find_element_by_xpath("//div[@id='viewForm']/form/table/tbody/tr/td/div[5]/label/span/acronym").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Bad / Good / Mixed:' not found on page %s" %(self.base_url + "/search.php?extended"))
        try: self.assertEqual("Language:", self.driver.find_element_by_xpath("//div[@id='viewForm']/form/table/tbody/tr/td/div[6]/label/span").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Language:' not found on page %s" %(self.base_url + "/search.php?extended"))
        try: self.assertEqual("Type of Artifact:", self.driver.find_element_by_xpath("//div[@id='viewForm']/form/table/tbody/tr/td/div[7]/label/span").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Type of Artifact:' not found on page %s" %(self.base_url + "/search.php?extended"))
        try: self.assertEqual("Status:", self.driver.find_element_by_xpath("//div[@id='viewForm']/form/table/tbody/tr/td/div[8]/span").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Status' not found on page %s" %(self.base_url + "/search.php?extended"))
        try: self.assertEqual("Weakness:", self.driver.find_element_by_xpath("//div[@id='viewForm']/form/table/tbody/tr/td/div[9]/label/span").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Weakness' not found on page %s" %(self.base_url + "/search.php?extended"))
        try: self.assertEqual("Code complexity:", self.driver.find_element_by_xpath("//div[@id='viewForm']/form/table/tbody/tr/td/div[10]/label/span").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Code complexity' not found on page %s" %(self.base_url + "/search.php?extended"))
        try: self.assertEqual("Query Date:\n(Format: M/d/Y)\nYou can use the calendar (next icon).", self.driver.find_element_by_xpath("//div[@id='viewForm']/form/table/tbody/tr/td/div[11]/fieldset/label/span").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Query Date' not found on page %s" %(self.base_url + "/search.php?extended"))
 def test_t_c_s_r_d_home(self):
     driver = self.driver
     driver.get(self.base_url + "/index.php")
     common_ui_tests.testSRDBanner(self, self.driver, self.verificationErrors)
     common_ui_tests.testSRDMenu(self, self.driver, self.verificationErrors)
     common_ui_tests.testFooter(self, self.driver, self.verificationErrors)
     time.sleep(2)
     try: self.assertEqual("SAMATE Reference Dataset", driver.title)
     except AssertionError as e: self.verificationErrors.append(" Wrong title on page %s" %(self.base_url + "/index.php")) 
    def test_t_c_test_suites(self):
        self.driver.get(self.base_url + "/testsuite.php")
        time.sleep(2)

        try: self.assertEqual("SAMATE Reference Dataset", self.driver.title)
        except AssertionError as e: self.verificationErrors.append(" Wrong title on page %s" %(self.base_url + "/around.php"))

       
        common_ui_tests.testSRDBanner(self, self.driver, self.verificationErrors)
        common_ui_tests.testSRDMenu(self, self.driver, self.verificationErrors)
        common_ui_tests.testFooter(self, self.driver, self.verificationErrors)

        self.assertEqual("Test Suites", self.driver.find_element_by_xpath("//div[@id='content']/h1").text)
        self.assertEqual("Stand-alone Suites", self.driver.find_element_by_xpath("//div[@id='content']/h2").text)
        self.assertEqual("SRD Suites", self.driver.find_element_by_xpath("//div[@id='content']/h2[2]").text)
        self.assertEqual("Archives", self.driver.find_element_by_xpath("//div[@id='content']/h2[3]").text)

        try: self.assertEqual("Link", self.driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr/td").text)
        except AssertionError as e: self.verificationErrors.append("Field '' not found on page %s" %(self.base_url + "/testsuite.php"))
        try: self.assertEqual("Publication Date", self.driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr/td[2]").text)
        except AssertionError as e: self.verificationErrors.append("Field '' not found on page %s" %(self.base_url + "/testsuite.php"))
        try: self.assertEqual("Title", self.driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr/td[3]").text)
        except AssertionError as e: self.verificationErrors.append("Field '' not found on page %s" %(self.base_url + "/testsuite.php"))
        try: self.assertEqual("Version", self.driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr/td[4]").text)
        except AssertionError as e: self.verificationErrors.append("Field '' not found on page %s" %(self.base_url + "/testsuite.php"))
        try: self.assertEqual("Description", self.driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr/td[5]").text)
        except AssertionError as e: self.verificationErrors.append("Field '' not found on page %s" %(self.base_url + "/testsuite.php"))
        try: self.assertEqual("Contributor", self.driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr/td[6]").text)
        except AssertionError as e: self.verificationErrors.append("Field '' not found on page %s" %(self.base_url + "/testsuite.php"))
        try: self.assertEqual("# of Cases", self.driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr/td[7]").text)
        except AssertionError as e: self.verificationErrors.append("Field '' not found on page %s" %(self.base_url + "/testsuite.php"))
        try: self.assertEqual("Test Suite ID", self.driver.find_element_by_xpath("//div[@id='content']/form/table/tbody/tr/td").text)
        except AssertionError as e: self.verificationErrors.append("Field '' not found on page %s" %(self.base_url + "/testsuite.php"))
        try: self.assertEqual("Creation Date", self.driver.find_element_by_xpath("//div[@id='content']/form/table/tbody/tr/td[2]").text)
        except AssertionError as e: self.verificationErrors.append("Field '' not found on page %s" %(self.base_url + "/testsuite.php"))
        try: self.assertEqual("Title", self.driver.find_element_by_xpath("//div[@id='content']/form/table/tbody/tr/td[3]").text)
        except AssertionError as e: self.verificationErrors.append("Field '' not found on page %s" %(self.base_url + "/testsuite.php"))
        try: self.assertEqual("Description", self.driver.find_element_by_xpath("//div[@id='content']/form/table/tbody/tr/td[4]").text)
        except AssertionError as e: self.verificationErrors.append("Field '' not found on page %s" %(self.base_url + "/testsuite.php"))
        try: self.assertEqual("Contributor", self.driver.find_element_by_xpath("//div[@id='content']/form/table/tbody/tr/td[5]").text)
        except AssertionError as e: self.verificationErrors.append("Field '' not found on page %s" %(self.base_url + "/testsuite.php"))
        try: self.assertEqual("# of Cases", self.driver.find_element_by_xpath("//div[@id='content']/form/table/tbody/tr/td[6]").text)
        except AssertionError as e: self.verificationErrors.append("Field '' not found on page %s" %(self.base_url + "/testsuite.php"))
        try: self.assertEqual("Link", self.driver.find_element_by_xpath("//div[@id='content']/table[2]/tbody/tr/td").text)
        except AssertionError as e: self.verificationErrors.append("Field '' not found on page %s" %(self.base_url + "/testsuite.php"))
        try: self.assertEqual("Publication Date", self.driver.find_element_by_xpath("//div[@id='content']/table[2]/tbody/tr/td[2]").text)
        except AssertionError as e: self.verificationErrors.append("Field '' not found on page %s" %(self.base_url + "/testsuite.php"))
        try: self.assertEqual("Title", self.driver.find_element_by_xpath("//div[@id='content']/table[2]/tbody/tr/td[3]").text)
        except AssertionError as e: self.verificationErrors.append("Field '' not found on page %s" %(self.base_url + "/testsuite.php"))
        try: self.assertEqual("Version", self.driver.find_element_by_xpath("//div[@id='content']/table[2]/tbody/tr/td[4]").text)
        except AssertionError as e: self.verificationErrors.append("Field '' not found on page %s" %(self.base_url + "/testsuite.php"))
        try: self.assertEqual("Description", self.driver.find_element_by_xpath("//div[@id='content']/table[2]/tbody/tr/td[5]").text)
        except AssertionError as e: self.verificationErrors.append("Field '' not found on page %s" %(self.base_url + "/testsuite.php"))
        try: self.assertEqual("Contributor", self.driver.find_element_by_xpath("//div[@id='content']/table[2]/tbody/tr/td[6]").text)
        except AssertionError as e: self.verificationErrors.append("Field '' not found on page %s" %(self.base_url + "/testsuite.php"))
        try: self.assertEqual("# of Cases", self.driver.find_element_by_xpath("//div[@id='content']/table[2]/tbody/tr/td[7]").text)
        except AssertionError as e: self.verificationErrors.append("Field '' not found on page %s" %(self.base_url + "/testsuite.php"))
    def test_t_c_view_test_case148803_page(self):
        driver = self.driver
        driver.get(self.base_url + "/view_testcase.php?tID=148803")

        try: self.assertEqual("SAMATE Reference Dataset :: TestCase 148803", self.driver.title)
        except AssertionError as e: self.verificationErrors.append(" Wrong title on page %s" %(self.base_url + "/around.php"))

        common_ui_tests.testSRDBanner(self, self.driver, self.verificationErrors)
        common_ui_tests.testSRDMenu(self, self.driver, self.verificationErrors)
        common_ui_tests.testFooter(self, self.driver, self.verificationErrors)

        try: self.assertEqual("Downloads: ", driver.find_element_by_xpath("//div[@id='content']/div/span").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Downloads:' not found on page %s" %(self.base_url + "/view_testcase.php?tID=148803"))
        self.assertTrue(common_ui_tests.is_element_present(self, By.XPATH, "//img[@alt='Download this Test Case #148803']"))
        try: self.assertEqual("Back to the previous page", driver.find_element_by_xpath("//div[@id='content']/h1/a").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Back to the previous page' not found on page %s" %(self.base_url + "/view_testcase.php?tID=148803"))
        try: self.assertEqual("Test Case ID", driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr/td").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Test Case ID' not found on page %s" %(self.base_url + "/view_testcase.php?tID=148803"))
        try: self.assertEqual("Bad / Good / Mixed", driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr[2]/td/strong/acronym").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Bad / Good / Mixed' not found on page %s" %(self.base_url + "/view_testcase.php?tID=148803"))
        try: self.assertEqual("Author", driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr[3]/td").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Author' not found on page %s" %(self.base_url + "/view_testcase.php?tID=148803"))
        try: self.assertEqual("Associated test case", driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr[4]/td").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Associated test case' not found on page %s" %(self.base_url + "/view_testcase.php?tID=148803"))
        try: self.assertEqual("Contributor", driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr[5]/td").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Contributor' not found on page %s" %(self.base_url + "/view_testcase.php?tID=148803"))
        try: self.assertEqual("Language", driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr[6]/td").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Language' not found on page %s" %(self.base_url + "/view_testcase.php?tID=148803"))
        try: self.assertEqual("Type of test case", driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr[7]/td").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Type of test case' not found on page %s" %(self.base_url + "/view_testcase.php?tID=148803"))
        try: self.assertEqual("Input string", driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr[9]/td/strong/acronym").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Input string' not found on page %s" %(self.base_url + "/view_testcase.php?tID=148803"))
        try: self.assertEqual("Expected Output", driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr[10]/td/strong/acronym").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Expected Output' not found on page %s" %(self.base_url + "/view_testcase.php?tID=148803"))
        try: self.assertEqual("Instructions", driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr[11]/td/strong/acronym").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Instructions' not found on page %s" %(self.base_url + "/view_testcase.php?tID=148803"))
        try: self.assertEqual("Submission date", driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr[12]/td").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Submission date' not found on page %s" %(self.base_url + "/view_testcase.php?tID=148803"))
        try: self.assertEqual("Description", driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr[13]/td").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Description' not found on page %s" %(self.base_url + "/view_testcase.php?tID=148803"))
        try: self.assertEqual("Filename", driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr[14]/td").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Filename' not found on page %s" %(self.base_url + "/view_testcase.php?tID=148803"))
        try: self.assertEqual("Flaw", driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr[15]/td").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Flaw' not found on page %s" %(self.base_url + "/view_testcase.php?tID=148803"))
        try: self.assertEqual("148803", driver.find_element_by_xpath("//div[@id='content']/table/tbody/tr/td[2]/span").text)
        except AssertionError as e: self.verificationErrors.append("Field '148803' not found on page %s" %(self.base_url + "/view_testcase.php?tID=148803"))
        try: self.assertEqual("Submit a comment", driver.find_element_by_xpath("//a[contains(text(),'Submit a comment')]").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Submit a comment' not found on page %s" %(self.base_url + "/view_testcase.php?tID=148803"))
    def test_more_downloads_tab(self):
        self.driver.get(self.base_url + "/around.php")

        try: self.assertEqual("SAMATE Reference Dataset :: Around the Samate Reference Dataset", self.driver.title)
        except AssertionError as e: self.verificationErrors.append(" Wrong title on page %s" %(self.base_url + "/around.php"))

        common_ui_tests.testSRDBanner(self, self.driver, self.verificationErrors)
        common_ui_tests.testSRDMenu(self, self.driver, self.verificationErrors)
        common_ui_tests.testFooter(self, self.driver, self.verificationErrors)

        try: self.assertEqual("Download the Full Manifest", self.driver.find_element_by_xpath("//div[@id='boxes']/table/tbody/tr/td/div/div/h2").text)
        except AssertionError as e: self.verificationErrors.append("Section 'Download the Full Manifest' does not exist on page %s" %(self.base_url + "/around.php"))
        try: self.assertEqual("Weaknesses and Code complexities", self.driver.find_element_by_xpath("//div[@id='boxes']/table/tbody/tr/td[2]/div/div/h2").text)
        except AssertionError as e: self.verificationErrors.append("Section 'Weaknesses and Code complexities' does not exist on page %s" %(self.base_url + "/around.php"))
        try: self.assertEqual("Manifest generation", self.driver.find_element_by_xpath("//div[@id='boxes']/table/tbody/tr[2]/td/div/div/h2").text)
        except AssertionError as e: self.verificationErrors.append("Section 'Manifest generation' does not exist on page %s" %(self.base_url + "/around.php"))
    def test_t_c_search_download_source_code_search(self):
        
        self.driver.get(self.base_url + "/search.php?code")
        
        try: self.assertEqual("SAMATE Reference Dataset", self.driver.title)
        except AssertionError as e: self.verificationErrors.append(" Wrong title on page %s" %(self.base_url + "/search.php?code"))

        common_ui_tests.testSRDBanner(self, self.driver, self.verificationErrors)
        common_ui_tests.testSRDMenu(self, self.driver, self.verificationErrors)
        common_ui_tests.testFooter(self, self.driver, self.verificationErrors)
        common_ui_tests.testTestDownloadMenu(self, self.driver, self.verificationErrors)
       
        try: self.assertEqual("File contains:", self.driver.find_element_by_xpath("//div[@id='search_Code']/form/div/span").text)
        except AssertionError as e: self.verificationErrors.append("Field 'File contains:' not found on page %s" %(self.base_url + "/search.php?code"))
        try: self.assertEqual("File name:", self.driver.find_element_by_xpath("//div[@id='search_Code']/form/div[2]/span").text)
        except AssertionError as e: self.verificationErrors.append("Field 'File name:' not found on page %s" %(self.base_url + "/search.php?code"))
        try: self.assertEqual("File size (bytes):", self.driver.find_element_by_xpath("//div[@id='search_Code']/form/div[3]/span").text)
        except AssertionError as e: self.verificationErrors.append("Field 'File size (bytes):' not found on page %s" %(self.base_url + "/search.php?code"))
        try: self.assertEqual("Number of files:", self.driver.find_element_by_xpath("//div[@id='search_Code']/form/div[4]/span").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Number of files:' not found on page %s" %(self.base_url + "/search.php?code"))
        try: self.assertEqual("Exact", self.driver.find_element_by_xpath("//div[@id='search_Code']/form/div/acronym").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Exact' not found on page %s" %(self.base_url + "/search.php?code"))
        try: self.assertEqual("Contains", self.driver.find_element_by_xpath("//div[@id='search_Code']/form/div/acronym[2]").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Contains' not found on page %s" %(self.base_url + "/search.php?code"))
        try: self.assertEqual("Regex", self.driver.find_element_by_xpath("//div[@id='search_Code']/form/div[2]/acronym").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Regex' not found on page %s" %(self.base_url + "/search.php?code"))
        try: self.assertEqual("min", self.driver.find_element_by_xpath("//div[@id='search_Code']/form/div[3]/span[2]").text)
        except AssertionError as e: self.verificationErrors.append("Field 'min' for 'File size' not found on page %s" %(self.base_url + "/search.php?code"))
        try: self.assertEqual("max", self.driver.find_element_by_xpath("//div[@id='search_Code']/form/div[3]/span[3]").text)
        except AssertionError as e: self.verificationErrors.append("Field 'max' for 'File size' not found on page %s" %(self.base_url + "/search.php?code"))
        try: self.assertEqual("min", self.driver.find_element_by_xpath("//div[@id='search_Code']/form/div[4]/span[2]").text)
        except AssertionError as e: self.verificationErrors.append("Field 'min' for 'Number of files' not found on page %s" %(self.base_url + "/search.php?code"))
        try: self.assertEqual("max", self.driver.find_element_by_xpath("//div[@id='search_Code']/form/div[4]/span[3]").text)
        except AssertionError as e: self.verificationErrors.append("Field 'max' for 'Number of files' not found on page %s" %(self.base_url + "/search.php?code"))
        try: self.assertEqual("Search in source code engine", self.driver.find_element_by_xpath("//div[@id='info_search_code']/h2").text)
        except AssertionError as e: self.verificationErrors.append("Field 'Search in source code engine' not found on page %s" %(self.base_url + "/search.php?code"))