Beispiel #1
0
 def test_cancelButton(self):
     try:
         browserInstance = setupValue()
         browser = browserInstance.setupfunction()
         LauncheTender = LauncheTenderclass()
         browser = LauncheTender.openURL(browser)
         logOut = Userprofilemenu()
         browser.implicitly_wait(10)
         LauncheTender.subcontractorValidlogin(browser)
         orgInstance = Organizationclass()
         orgInstance.OpenaddUser(browser)
         time.sleep(2)
         if (orgLink.readfromXML(folder_path + '\Data\Data.xml', 'eTender',
                                 'userSaveEmail') in browser.page_source):
             orgInstance.RemoveUserOrganization(browser)
         orgInstance.AddUserOrganizationCancel(browser)
         time.sleep(2)
         orgInstance.OpenUserRole(browser)
         time.sleep(2)
         orgInstance.OpenaddUser(browser)
         time.sleep(2)
         self.assertFalse(
             orgLink.readfromXML(folder_path + '\Data\Data.xml', 'eTender',
                                 'userSaveEmail') in browser.page_source)
         logs.info("Test Case No : 100103 Passed Successfully")
     except Exception:
         logs.error("Validation with Test Case No: 100103 failed")
         browser.save_screenshot(fullpath)
         traceback.print_exc(file=sys.stdout)
         self.fail("Test Case No: 100103 failed")
     finally:
         browser = logOut.logout_eTender(browser)
         LauncheTender.closebrowser(browser)
 def test_messageforAddUser(self):
     try:
         browserInstance = setupValue()
         browser = browserInstance.setupfunction()
         LauncheTender = LauncheTenderclass()
         browser = LauncheTender.openURL(browser)
         browser = LauncheTender.subcontractorValidlogin(browser)
         browser.implicitly_wait(10)
         orgInstance = Organizationclass()
         orgInstance.OpenaddUser(browser)
         addusertoOrg = orgLink.readfromXML(
             folder_path + '\Object\Object.xml', 'eTender',
             'adduserOrganisation')
         browser.find_element_by_xpath(addusertoOrg).click()
         browser.find_element_by_id(
             orgLink.readfromXML(folder_path + '\Object\Object.xml',
                                 'eTender', 'adduserSavebutton')).click()
         time.sleep(3)
         self.assertTrue(
             orgLink.readfromXML(folder_path + '\Data\Data.xml', 'eTender',
                                 'warninginUser') in browser.page_source)
         logs.info("Test Case No : 100138 Passed Successfully")
     except Exception:
         logs.error("Validation with Test Case No: 100138 failed")
         browser.save_screenshot(fullpath)
         traceback.print_exc(file=sys.stdout)
         self.fail("Test Case No: 100138 failed")
     finally:
         browser = LauncheTender.closebrowser(browser)
 def test_SubcontractorlogineTender(self):
     try:
         browserInstance = setupValue()
         browser = browserInstance.setupfunction()
         browser.implicitly_wait(5)
         LauncheTender1 = LauncheTenderclass()
         browser = LauncheTender1.openURL(browser)
         browser.implicitly_wait(5)
         browser = LauncheTender1.subcontractorValidlogin(browser)
         browser.implicitly_wait(5)
         time.sleep(1)
         subcontractor_login = DataDriver()
         organisation_text = subcontractor_login.readfromXML(
             folder_path + '\Object\Object.xml', 'eTender',
             'organisation-text')  #organisation
         time.sleep(1)
         organisation = browser.find_element_by_link_text(organisation_text)
         #print organisation.text
         time.sleep(1)
         organisation1 = organisation.text
         time.sleep(1)
         self.assertEqual(organisation1, 'GSE Civil Engineering Ltd')
         logs.info("Test Case No : 100003 Passed Successfully")
     except Exception:
         logs.error("Validation with Test Case No: 100003 failed")
         browser.save_screenshot(fullpath)
         traceback.print_exc(file=sys.stdout)
         self.fail("Test Case No: 100003 failed")
         browser.implicitly_wait(5)
     finally:
         LauncheTender1.closebrowser(browser)
    def test_RFxsupplierquestionstabClick(self):
        try:
            browserInstance = setupValue()
            browser = browserInstance.setupfunction()
            LauncheTender1 = LauncheTenderclass()
            browser = LauncheTender1.openURL(browser)
            browser = LauncheTender1.subcontractorValidlogin(browser)
            browser = LauncheTender1.list_project(browser)
            tenderDetails = Tenderdetails()
            browser = tenderDetails.Subcontratorproject(browser)
            browser = tenderDetails.suppliersecondtender(browser)
            time.sleep(2)
            RFxAnswers = RFxQuestionnaire()

            browser = RFxAnswers.RFxQuestionsTabinsupplier(browser)
            time.sleep(2)

            RFxAnswerstab1 = DataDriver()
            time.sleep(1)
            RFxEstimatorQuestion_path = RFxAnswerstab1.readfromXML(folder_path+'\Object\RFx.xml','eTender','rfxanswer1')
            RFxEstimatorQuestion = browser.find_element_by_xpath(RFxEstimatorQuestion_path)
            time.sleep(1)

            self.assertEqual(RFxEstimatorQuestion.text,'1. Have you ISO Certified?')

            logs.info("Test Case No : 100291 Passed Successfully")
        except Exception:
            logs.error("Validation with Test Case No: 100291 failed")
            browser.save_screenshot(fullpath)
            traceback.print_exc(file=sys.stdout)
            self.fail("Test Case No: 100291 failed")
            browser.implicitly_wait(5)
        finally:
            LauncheTender1.closebrowser(browser)
Beispiel #5
0
 def test_Profilelocation(self):
     try:
         browserInstance = setupValue()
         browser = browserInstance.setupfunction()
         LauncheTender = LauncheTenderclass()
         logOut=Userprofilemenu()
         browser = LauncheTender.openURL(browser)
         browser= LauncheTender.subcontractorValidlogin(browser)
         orgInstance=Organizationclass()
         orgInstance.OpenProfilePage(browser)
         time.sleep(2)
         textvalue=orgLink.readfromXML(folder_path+'\Data\Data.xml','eTender','locationtext')
         time.sleep(2)
         savebutton=browser.find_element_by_xpath(orgLink.readfromXML(folder_path+'\Object\Object.xml','eTender','saveinprofile'))
         browser.find_element_by_xpath(orgLink.readfromXML(folder_path+'\Object\Object.xml','eTender','locationprofile')).send_keys(textvalue)
         p=browser.find_elements_by_css_selector(orgLink.readfromXML(folder_path+'\Object\Object.xml','eTender','locationLink'))
         p[0].click()
         time.sleep(2)
         self.assertEqual(browser.find_element_by_xpath(orgLink.readfromXML(folder_path+'\Object\Object.xml','eTender','addresstextbox')).get_attribute('value'),orgLink.readfromXML(folder_path+'\Data\Data.xml','eTender','addresstext'))
         time.sleep(2)
         browser.execute_script("arguments[0].scrollIntoView(true);", savebutton)
         savebutton.click()
         orgInstance.OpenaddUser(browser)
         orgInstance.OpenProfilePage(browser)
         time.sleep(2)
         self.assertEqual(browser.find_element_by_xpath(orgLink.readfromXML(folder_path+'\Object\Object.xml','eTender','addresstextbox')).get_attribute('value'),orgLink.readfromXML(folder_path+'\Data\Data.xml','eTender','addresstext'))
         logs.info("Test Case No : 100098 Passed Successfully")
     except Exception:
         logs.error("Validation with Test Case No: 100098 failed")
         browser.save_screenshot(fullpath)
         traceback.print_exc(file=sys.stdout)
         self.fail("Test Case No: 100098 failed")
     finally:
         browser=logOut.logout_eTender(browser)
         LauncheTender.closebrowser(browser)
Beispiel #6
0
 def test_UserProfileSave(self):
     try:
         browserInstance = setupValue()
         browser = browserInstance.setupfunction()
         LauncheTender = LauncheTenderclass()
         browser = LauncheTender.openURL(browser)
         browser= LauncheTender.subcontractorValidlogin(browser)
         orgInstance=Organizationclass()
         logOut=Userprofilemenu()
         orgInstance.OpenUserProfilePage(browser)
         time.sleep(3)
         textvalue=orgLink.readfromXML(folder_path+'\Data\Data.xml','eTender','nametextprofile')
         browser.find_element_by_xpath(orgLink.readfromXML(folder_path+'\\Object\\UserProfileObject.xml','eTender','FirstnameTextbox')).clear()
         browser.find_element_by_xpath(orgLink.readfromXML(folder_path+'\\Object\\UserProfileObject.xml','eTender','FirstnameTextbox')).send_keys(textvalue)
         sbutton=browser.find_element_by_xpath(orgLink.readfromXML(folder_path+'\\Object\\UserProfileObject.xml','eTender','savebutton'))
         browser.execute_script("arguments[0].scrollIntoView(true);", sbutton)
         time.sleep(2)
         sbutton.click()
         orgInstance.OpenaddUser(browser)
         orgInstance.OpenUserProfilePage(browser)
         time.sleep(2)
         self.assertEquals(browser.find_element_by_xpath(orgLink.readfromXML(folder_path+'\\Object\\UserProfileObject.xml','eTender','FirstnameTextbox')).get_attribute('value'),textvalue)
         logs.info("Test Case No : 100160 Passed Successfully")
     except Exception:
         logs.error("Validation with Test Case No: 100160 failed")
         browser.save_screenshot(fullpath)
         traceback.print_exc(file=sys.stdout)
         self.fail("Test Case No: 100160 failed")
     finally:
         browser=logOut.logout_eTender(browser)
         LauncheTender.closebrowser(browser)
Beispiel #7
0
 def test_LogouteTender(self):
     try:
         browserInstance = setupValue()
         browser = browserInstance.setupfunction()
         browser.implicitly_wait(5)
         LauncheTender1 = LauncheTenderclass()
         browser = LauncheTender1.openURL(browser)
         browser = LauncheTender1.subcontractorValidlogin(browser)
         time.sleep(3)
         Userprofilemenu_logout = Userprofilemenu()
         browser = Userprofilemenu_logout.logout_eTender(browser)
         time.sleep(3)
         eTlogout = DataDriver()
         logout_path = eTlogout.readfromXML(
             folder_path + '\Object\Object.xml', 'eTender', 'submitButton')
         time.sleep(1)
         Logout = browser.find_element_by_id(logout_path)  #Login button
         Logout1 = Logout.text
         time.sleep(1)
         self.assertEqual(Logout1, 'Log In')
         logs.info("Test Case No : 100041 Passed Successfully")
     except Exception:
         logs.error("Validation with Test Case No: 100041 failed")
         browser.save_screenshot(fullpath)
         traceback.print_exc(file=sys.stdout)
         self.fail("Test Case No: 100041 failed")
         browser.implicitly_wait(5)
     finally:
         LauncheTender1.closebrowser(browser)
 def test_removeUsertoOrg(self):
     try:
         browserInstance = setupValue()
         browser = browserInstance.setupfunction()
         LauncheTender = LauncheTenderclass()
         browser = LauncheTender.openURL(browser)
         browser = LauncheTender.subcontractorValidlogin(browser)
         browser.implicitly_wait(10)
         orgInstance = Organizationclass()
         logOut = Userprofilemenu()
         orgInstance.OpenaddUser(browser)
         browser.implicitly_wait(10)
         browser = orgInstance.AddUserOrganization(browser)
         time.sleep(3)
         browser.find_element_by_xpath(
             orgLink.readfromXML(folder_path + '\Object\Object.xml',
                                 'eTender', 'saveButon')).click()
         self.assertTrue(
             orgLink.readfromXML(folder_path + '\Data\Data.xml', 'eTender',
                                 'userSaveEmail') in browser.page_source)
         orgInstance.RemoveUserOrganization(browser)
         self.assertFalse(
             orgLink.readfromXML(folder_path + '\Data\Data.xml', 'eTender',
                                 'userSaveEmail') in browser.page_source)
         time.sleep(2)
         logs.info("Test Case No : 100105 Passed Successfully")
     except Exception:
         logs.error("Validation with Test Case No: 100111 failed")
         browser.save_screenshot(fullpath)
         traceback.print_exc(file=sys.stdout)
         self.fail("Test Case No: 100105 failed")
         browser.implicitly_wait(5)
     finally:
         browser = logOut.logout_eTender(browser)
         LauncheTender.closebrowser(browser)
Beispiel #9
0
 def test_Projectlist(self):
     try:
         browserInstance = setupValue()
         browser = browserInstance.setupfunction()
         browser.implicitly_wait(5)
         LauncheTender1 = LauncheTenderclass()
         browser = LauncheTender1.openURL(browser)
         browser.implicitly_wait(5)
         browser = LauncheTender1.subcontractorValidlogin(browser)
         browser = LauncheTender1.list_Organisation(browser)
         browser = LauncheTender1.verifyorganisationdetails(browser)
         browser = LauncheTender1.list_project(browser)
         browser.implicitly_wait(5)
         list_project = DataDriver()
         projectlist1 = list_project.readfromXML(
             folder_path + '\Object\Object.xml', 'eTender',
             'projectlist')  #Project
         browser.implicitly_wait(5)
         project_list = browser.find_element_by_link_text(projectlist1)
         project_list1 = project_list.text
         self.assertEqual(project_list1, 'Test Project')
         logs.info("Test Case No : 100006 Passed Successfully")
     except Exception:
         logs.error("Validation with Test Case No: 100006 failed")
         browser.save_screenshot(fullpath)
         traceback.print_exc(file=sys.stdout)
         self.fail("Test Case No: 100006 failed")
         browser.implicitly_wait(5)
     finally:
         LauncheTender1.closebrowser(browser)
 def test_userSelectionverification(self):
     try:
         browserInstance = setupValue()
         browser = browserInstance.setupfunction()
         browser.implicitly_wait(10)
         LauncheTender = LauncheTenderclass()
         browser = LauncheTender.openURL(browser)
         browser = LauncheTender.subcontractorValidlogin(browser)
         orgInstance = Organizationclass()
         logOut = Userprofilemenu()
         orgInstance.OpenUserRole(browser)
         time.sleep(3)
         browser.find_element_by_xpath(
             orgLink.readfromXML(folder_path + '\Object\Object.xml',
                                 'eTender', 'managerole')).click()
         self.assertTrue(
             orgLink.readfromXML(folder_path + '\Data\Data.xml', 'eTender',
                                 'warninginRole') in browser.page_source)
         time.sleep(3)
         logs.info("Test Case No : 100118 Passed Successfully")
     except Exception:
         logs.error("Validation with Test Case No: 100118 failed")
         browser.save_screenshot(fullpath)
         traceback.print_exc(file=sys.stdout)
         self.fail("Test Case No: 100118 failed")
     finally:
         browser = logOut.logout_eTender(browser)
         LauncheTender.closebrowser(browser)
Beispiel #11
0
 def test_addingNotes(self):
     try:
         browserInstance = setupValue()
         browser = browserInstance.setupfunction()
         browser.implicitly_wait(5)
         time.sleep(1)
         LauncheTender1 = LauncheTenderclass()
         browser = LauncheTender1.openURL(browser)
         browser.implicitly_wait(5)
         time.sleep(2)
         browser = LauncheTender1.subcontractorValidlogin(browser)
         #browser = LauncheTender1.list_Organisation(browser)
         time.sleep(1)
         browser = LauncheTender1.verifyorganisationdetails(browser)
         browser = LauncheTender1.list_project(browser)
         tenderDetails = Tenderdetails()
         time.sleep(1)
         browser = tenderDetails.Subcontratorproject(browser)
         browser = tenderDetails.suppliertender(browser)
         time.sleep(1)
         browser = tenderDetails.hoverThemousefornoteButton(browser)
         browser = tenderDetails.dialogueBoxtoAddaNote(browser)
         browser = tenderDetails.addingNotes(browser)
         time.sleep(3)
         enteredNotes = DataDriver()
         click_notesbubble = []
         clicknotesbubble_path = enteredNotes.readfromXML(
             folder_path + '\Object\Object.xml', 'eTender',
             'clicknotesbubble')
         time.sleep(1)
         click_notesbubble = browser.find_elements_by_xpath(
             clicknotesbubble_path)  #Click on Notes bubble
         time.sleep(3)
         click_notesbubble[4].click()
         enterednotes_path = enteredNotes.readfromXML(
             folder_path + '\Object\Object.xml', 'eTender',
             'addingnotes')  #adding notes
         time.sleep(1)
         enterednotes = browser.find_element_by_xpath(
             enterednotes_path)  #Webelement for entered notes
         actualnotes = enterednotes.text
         time.sleep(1)
         self.assertEqual(actualnotes, 'Notes 1')
         savenotes_path = enteredNotes.readfromXML(
             folder_path + '\Object\Object.xml', 'eTender', 'savenotes')
         Save_Notes = browser.find_element_by_xpath(
             savenotes_path)  #Save button
         Save_Notes.click()
         time.sleep(2)
         browser = tenderDetails.deleteNotes(browser)
         time.sleep(1)
         logs.info("Test Case No : 100024 Passed Successfully")
     except Exception:
         logs.error("Validation with Test Case No: 100024 failed")
         browser.save_screenshot(fullpath)
         traceback.print_exc(file=sys.stdout)
         self.fail("Test Case No: 100024 failed")
         browser.implicitly_wait(5)
     finally:
         LauncheTender1.closebrowser(browser)
Beispiel #12
0
 def test_ProjectInOrg(self):
     try:
         browserInstance = setupValue()
         browser = browserInstance.setupfunction()
         LauncheTender = LauncheTenderclass()
         logOut = Userprofilemenu()
         browser = LauncheTender.openURL(browser)
         browser = LauncheTender.subcontractorValidlogin(browser)
         projectInstance = Projectclass()
         time.sleep(3)
         projectInstance.Openorganization(browser)
         orglink = orgLink.readfromXML(folder_path + '\Data\Data.xml',
                                       'eTender', 'Orgselection')
         Projectlink = orgLink.readfromXML(folder_path + '\Data\Data.xml',
                                           'eTender', 'ProjectSelection')
         browser.find_element_by_link_text(orglink).click()
         browser.find_element_by_link_text(Projectlink).click()
         time.sleep(2)
         self.assertTrue(
             orgLink.readfromXML(folder_path + '\Data\Data.xml', 'eTender',
                                 'ProjectSelection') in browser.page_source)
         self.assertTrue(
             orgLink.readfromXML(folder_path + '\Data\Data.xml', 'eTender',
                                 'TradeList') in browser.page_source)
         logs.info("Test Case No : 100162 Passed Successfully")
     except Exception:
         logs.error("Validation with Test Case No: 100162 failed")
         browser.save_screenshot(fullpath)
         traceback.print_exc(file=sys.stdout)
         self.fail("Test Case No: 100162 failed")
         browser.implicitly_wait(5)
     finally:
         browser = logOut.logout_eTender(browser)
         LauncheTender.closebrowser(browser)
Beispiel #13
0
 def test_changepasswordmenu(self):
     try:
         browserInstance = setupValue()
         browser = browserInstance.setupfunction()
         browser.implicitly_wait(5)
         time.sleep(1)
         LauncheTender1 = LauncheTenderclass()
         browser = LauncheTender1.openURL(browser)
         time.sleep(1)
         browser = LauncheTender1.subcontractorValidlogin(browser)
         Userprofilemenu_changepasswordmenu = Userprofilemenu()
         time.sleep(1)
         browser = Userprofilemenu_changepasswordmenu.changePassword(browser)
         browser.implicitly_wait(5)
         time.sleep(1)
         eTchangepasswordmenu = DataDriver()
         changepasswordmenu_path = eTchangepasswordmenu.readfromXML(folder_path+'\Object\Object.xml','eTender','changepasswordinputfield')
         time.sleep(1)
         changepasswordinputfield = browser.find_element_by_xpath(changepasswordmenu_path) #changepasswordinputfield
         time.sleep(1)
         logs.info("Test Case No : 100038 Passed Successfully")
     except Exception:
         logs.error("Validation with Test Case No: 100038 failed")
         browser.save_screenshot(fullpath)
         traceback.print_exc(file=sys.stdout)
         self.fail("Test Case No: 100038 failed")
         browser.implicitly_wait(5)
     finally:
         LauncheTender1.closebrowser(browser)
Beispiel #14
0
    def test_tenderquickaccess(self):
        try:
            browserInstance = setupValue()
            browser = browserInstance.setupfunction()
            browser.implicitly_wait(5)
            LauncheTender1 = LauncheTenderclass()
            browser = LauncheTender1.openURL(browser)
            browser.implicitly_wait(5)
            browser = LauncheTender1.subcontractorValidlogin(browser)
            Quickaccess = Quicklyaccessingtendersclass()
            browser = Quickaccess.tenderQuickAccess(browser)
            tenderslist = []
            quicktenders = DataDriver()
            quicktenders_path = quicktenders.readfromXML(
                folder_path + '\Object\Object.xml', 'eTender', 'quicktenders')
            tenderslist = browser.find_elements_by_xpath(
                quicktenders_path)  #tenders list in Quick tender access
            time.sleep(1)

            firsttender = tenderslist[0].text
            secondtender = tenderslist[1].text
            self.assertEqual(firsttender,
                             'A - Preliminaries - A1303 - Temp Proppin')
            self.assertEqual(secondtender,
                             'A - Preliminaries - A1304 - Edge Protect')

            logs.info("Test Case No : 100010 Passed Successfully")
        except Exception:
            logs.error("Validation with Test Case No: 100010 failed")
            browser.save_screenshot(fullpath)
            traceback.print_exc(file=sys.stdout)
            self.fail("Test Case No: 100010 failed")
            browser.implicitly_wait(5)
        finally:
            LauncheTender1.closebrowser(browser)
Beispiel #15
0
    def test_RFxsupplieransweruploadfiles(self):
        try:
            browserInstance = setupValue()
            browser = browserInstance.setupfunction()
            LauncheTender1 = LauncheTenderclass()
            browser = LauncheTender1.openURL(browser)
            browser = LauncheTender1.subcontractorValidlogin(browser)
            browser = LauncheTender1.list_project(browser)
            tenderDetails = Tenderdetails()
            browser = tenderDetails.Subcontratorproject(browser)
            browser = tenderDetails.suppliersecondtender(browser)
            time.sleep(2)
            RFxAnswers = RFxQuestionnaire()

            browser = RFxAnswers.RFxQuestionsTabinsupplier(browser)
            time.sleep(2)

            RFxAnswerstab1 = DataDriver()
            time.sleep(1)
            RFxEstimatorQuestion_path = RFxAnswerstab1.readfromXML(
                folder_path + '\Object\RFx.xml', 'eTender', 'rfxanswer1')
            RFxEstimatorQuestion = browser.find_elements_by_xpath(
                RFxEstimatorQuestion_path)
            time.sleep(1)

            self.assertEqual(RFxEstimatorQuestion[0].text,
                             '1. Have you ISO Certified?')
            self.assertEqual(RFxEstimatorQuestion[1].text,
                             '2. Do you have template format?')
            self.assertEqual(RFxEstimatorQuestion[2].text,
                             '3. Are you Big contractor or Small?')
            self.assertEqual(RFxEstimatorQuestion[3].text,
                             '4. Upload relevent files')

            RFxmultipleoptions_path = RFxAnswerstab1.readfromXML(
                folder_path + '\Object\RFx.xml', 'eTender',
                'radiobuttonoptions')
            RFxmultipleoptions = browser.find_elements_by_xpath(
                RFxmultipleoptions_path)
            time.sleep(1)

            ##            self.assertEqual(RFxmultipleoptions[0].text,'Yes')
            ##            self.assertEqual(RFxmultipleoptions[1].text,'No')
            ##
            ##            self.assertEqual(RFxmultipleoptions[2].text,'No')
            ##            self.assertEqual(RFxmultipleoptions[3].text,'Yes')

            #browser = RFxAnswers.uploadFile(browser)
            #time.sleep(2)

            logs.info("Test Case No : 100291 Passed Successfully")
        except Exception:
            logs.error("Validation with Test Case No: 100291 failed")
            browser.save_screenshot(fullpath)
            traceback.print_exc(file=sys.stdout)
            self.fail("Test Case No: 100291 failed")
            browser.implicitly_wait(5)
        finally:
            LauncheTender1.closebrowser(browser)
    def test_confirmdeclinetender(self):
        try:
            browserInstance = setupValue()
            browser = browserInstance.setupfunction()
            browser.implicitly_wait(5)
            time.sleep(1)
            LauncheTender1 = LauncheTenderclass()
            browser = LauncheTender1.openURL(browser)
            browser.implicitly_wait(5)
            time.sleep(1)
            browser = LauncheTender1.subcontractorValidlogin(browser)
            browser = LauncheTender1.verifyorganisationdetails(browser)
            browser = LauncheTender1.list_project(browser)
            time.sleep(1)
            tenderDetails = Tenderdetails()
            browser = tenderDetails.Subcontratorproject(browser)
            time.sleep(1)
            browser = tenderDetails.suppliertender(browser)
            tenderDetails_decline = SubmitTenderclass()
            browser.implicitly_wait(5)
            time.sleep(1)
            browser = tenderDetails_decline.declineTender(browser)
            browser = tenderDetails_decline.declineTenderSubmission(browser)
            browser.implicitly_wait(5)
            time.sleep(1)
            confirmdecline = DataDriver()
            confirmdecline_path = confirmdecline.readfromXML(
                folder_path + '\Object\Object.xml', 'eTender',
                'confirmdeclinesubmission')
            time.sleep(1)
            tenderdeclined_notification = browser.find_element_by_xpath(
                confirmdecline_path)  #xpath for tender declined notification
            time.sleep(2)

            if tenderdeclined_notification.is_displayed():
                print("pass")
            else:
                print("fail")

            logs.info("Test Case No : 100037 Passed Successfully")
        except Exception:
            logs.error("Validation with Test Case No: 100037 failed")
            browser.save_screenshot(fullpath)
            traceback.print_exc(file=sys.stdout)
            self.fail("Test Case No: 100037 failed")
            browser.implicitly_wait(5)
        finally:
            reopenTender = ReopentenderusingRESTAPIclass()
            time.sleep(1)
            accesstoken = reopenTender.AuthunticateAPI()
            time.sleep(1)
            reopenTender.ReopentenderusingRESTAPI(accesstoken)
            time.sleep(1)
            LauncheTender1.closebrowser(browser)
Beispiel #17
0
 def test_ColumnsinTradeList(self):
     try:
         browserInstance = setupValue()
         browser = browserInstance.setupfunction()
         browser.implicitly_wait(5)
         LauncheTender1 = LauncheTenderclass()
         browser = LauncheTender1.openURL(browser)
         browser.implicitly_wait(5)
         browser = LauncheTender1.subcontractorValidlogin(browser)
         browser = LauncheTender1.list_Organisation(browser)
         browser = LauncheTender1.verifyorganisationdetails(browser)
         browser = LauncheTender1.list_project(browser)
         tenderDetails = Tenderdetails()
         time.sleep(1)
         browser = tenderDetails.Subcontratorproject(browser)
         browser = tenderDetails.verifyColumnsinTradeList(browser)
         time.sleep(1)
         columns_XML = DataDriver()
         columns_path = columns_XML.readfromXML(
             folder_path + '\Object\Object.xml', 'eTender', 'tradecolumns')
         trade_columns = []
         time.sleep(1)
         trade_columns = browser.find_elements_by_xpath(columns_path)
         time.sleep(1)
         browser.implicitly_wait(5)
         tradecolumn1 = trade_columns[0].text
         tradecolumn2 = trade_columns[1].text
         tradecolumn3 = trade_columns[2].text
         time.sleep(1)
         tradecolumn4 = trade_columns[3].text
         ##            tradecolumn5 = trade_columns[4].text
         ##            tradecolumn6 = trade_columns[5].text
         ##            time.sleep(1)
         ##            tradecolumn7 = trade_columns[6].text
         self.assertEqual(tradecolumn1, 'DOMESTIC')
         #self.assertEqual(tradecolumn2,'Received date:May 14, 2018')
         time.sleep(1)
         #self.assertEqual(tradecolumn3,'Due date:Jul 25, 2018')
         self.assertEqual(tradecolumn4, 'Responded date:')
         time.sleep(1)
         ##            self.assertEqual(tradecolumn5,'Received date')
         ##            self.assertEqual(tradecolumn6,'Due date')
         ##            time.sleep(1)
         ##            self.assertEqual(tradecolumn7,'Document')
         logs.info("Test Case No : 100008 Passed Successfully")
     except Exception:
         logs.error("Validation with Test Case No: 100008 failed")
         browser.save_screenshot(fullpath)
         traceback.print_exc(file=sys.stdout)
         self.fail("Test Case No: 100008 failed")
         browser.implicitly_wait(5)
     finally:
         LauncheTender1.closebrowser(browser)
    def test_OrganidetailsofOrganisation(self):
        try:
            browserInstance = setupValue()
            browser = browserInstance.setupfunction()
            browser.implicitly_wait(5)
            LauncheTender1 = LauncheTenderclass()
            browser = LauncheTender1.openURL(browser)
            browser.implicitly_wait(5)
            browser = LauncheTender1.subcontractorValidlogin(browser)
            browser = LauncheTender1.list_Organisation(browser)
            browser = LauncheTender1.verifyorganisationdetails(browser)
            browser.implicitly_wait(5)

            orgDetails = DataDriver()
            organisation1_text = orgDetails.readfromXML(
                folder_path + '\Object\Object.xml', 'eTender',
                'organisation-text')  #organisation
            organisation = browser.find_element_by_link_text(
                organisation1_text)
            browser.implicitly_wait(5)

            pending_tenders = []
            pendingTrades_count = orgDetails.readfromXML(
                folder_path + '\Object\Object.xml', 'eTender',
                'pendingTrades')  #pending trades
            pending_tenders = browser.find_elements_by_xpath(
                pendingTrades_count)
            browser.implicitly_wait(5)

            org_website = orgDetails.readfromXML(
                folder_path + '\Object\Object.xml', 'eTender',
                'orgwebsite')  #organisation website
            organisation_website = browser.find_element_by_link_text(
                org_website)
            browser.implicitly_wait(5)

            organisation1 = organisation.text
            pending_tenders1 = pending_tenders[1].text
            organisation_website1 = organisation_website.text
            self.assertEqual(organisation1, 'GSE Civil Engineering Ltd')
            self.assertEqual(pending_tenders1, 'Pending trades: 2')
            self.assertEqual(organisation_website1,
                             'http://www.gse-group.co.uk/')
            logs.info("Test Case No : 100004 Passed Successfully")
        except Exception:
            logs.error("Validation with Test Case No: 100004 failed")
            browser.save_screenshot(fullpath)
            traceback.print_exc(file=sys.stdout)
            self.fail("Test Case No: 100004 failed")
            browser.implicitly_wait(5)
        finally:
            LauncheTender1.closebrowser(browser)
 def test_ProfileUI(self):
     try:
         browserInstance = setupValue()
         browser = browserInstance.setupfunction()
         LauncheTender = LauncheTenderclass()
         browser = LauncheTender.openURL(browser)
         browser = LauncheTender.subcontractorValidlogin(browser)
         orgInstance = Organizationclass()
         orgInstance.OpenProfilePage(browser)
         time.sleep(3)
         self.assertTrue(
             browser.find_element_by_xpath(
                 orgLink.readfromXML(folder_path + '\Object\Object.xml',
                                     'eTender', 'nameinProfile')))
         self.assertTrue(
             browser.find_element_by_xpath(
                 orgLink.readfromXML(folder_path + '\Object\Object.xml',
                                     'eTender', 'phoneinProfile')))
         self.assertTrue(
             browser.find_element_by_xpath(
                 orgLink.readfromXML(folder_path + '\Object\Object.xml',
                                     'eTender', 'webinProfile')))
         self.assertTrue(
             browser.find_element_by_xpath(
                 orgLink.readfromXML(folder_path + '\Object\Object.xml',
                                     'eTender', 'emailinprofile')))
         self.assertTrue(
             browser.find_element_by_xpath(
                 orgLink.readfromXML(folder_path + '\Object\Object.xml',
                                     'eTender', 'addressinprofile')))
         self.assertTrue(
             browser.find_element_by_xpath(
                 orgLink.readfromXML(folder_path + '\Object\Object.xml',
                                     'eTender', 'countyinprofile')))
         self.assertTrue(
             browser.find_element_by_xpath(
                 orgLink.readfromXML(folder_path + '\Object\Object.xml',
                                     'eTender', 'countryinprofile')))
         self.assertTrue(
             browser.find_element_by_xpath(
                 orgLink.readfromXML(folder_path + '\Object\Object.xml',
                                     'eTender', 'postalinprofile')))
         logs.info("Test Case No : 100097 Passed Successfully")
     except Exception:
         logs.error("Validation with Test Case No: 100097 failed")
         browser.save_screenshot(fullpath)
         traceback.print_exc(file=sys.stdout)
         self.fail("Test Case No: 100097 failed")
         browser.implicitly_wait(5)
     finally:
         browser = LauncheTender.closebrowser(browser)
Beispiel #20
0
 def test_clearmessageineditor(self):
     try:
         browserInstance = setupValue()
         browser = browserInstance.setupfunction()
         browser.implicitly_wait(5)
         time.sleep(1)
         LauncheTender1 = LauncheTenderclass()
         browser = LauncheTender1.openURL(browser)
         browser.implicitly_wait(5)
         time.sleep(1)
         browser = LauncheTender1.subcontractorValidlogin(browser)
         #browser = LauncheTender1.list_Organisation(browser)
         time.sleep(1)
         browser = LauncheTender1.verifyorganisationdetails(browser)
         browser = LauncheTender1.list_project(browser)
         tenderDetails = Tenderdetails()
         time.sleep(1)
         browser = tenderDetails.Subcontratorproject(browser)
         browser = tenderDetails.suppliertender(browser)
         time.sleep(1)
         browser = tenderDetails.Actionslist(browser)
         time.sleep(1)
         browser = tenderDetails.editmessageinEditor(browser)
         time.sleep(1)
         browser = tenderDetails.clearmessageineditor(browser)
         time.sleep(1)
         nomessage = DataDriver()
         nomessage_path = nomessage.readfromXML(
             folder_path + '\Object\Object.xml', 'eTender',
             'notesinsendmessage')
         nomessage_ineditor = browser.find_element_by_xpath(nomessage_path)
         nomessage_ineditor1 = nomessage_ineditor.text
         self.assertEqual(nomessage_ineditor1, '')
         time.sleep(1)
         browser = tenderDetails.backtotenderdetailswindow(browser)
         time.sleep(1)
         Userprofilemenu_logout = Userprofilemenu()
         browser = Userprofilemenu_logout.logout_eTender(browser)
         time.sleep(1)
         logs.info("Test Case No : 100026 Passed Successfully")
     except Exception:
         logs.error("Validation with Test Case No: 100026 failed")
         browser.save_screenshot(fullpath)
         traceback.print_exc(file=sys.stdout)
         self.fail("Test Case No: 100026 failed")
         browser.implicitly_wait(5)
     finally:
         LauncheTender1.closebrowser(browser)
 def test_uploaddocment(self):
     try:
         browserInstance = setupValue()
         browser = browserInstance.setupfunction()
         browser.implicitly_wait(5)
         time.sleep(1)
         LauncheTender1 = LauncheTenderclass()
         browser = LauncheTender1.openURL(browser)
         browser.implicitly_wait(5)
         time.sleep(1)
         browser = LauncheTender1.subcontractorValidlogin(browser)
         browser = LauncheTender1.list_Organisation(browser)
         time.sleep(1)
         browser = LauncheTender1.verifyorganisationdetails(browser)
         browser = LauncheTender1.list_project(browser)
         tenderDetails = Tenderdetails()
         time.sleep(1)
         browser = tenderDetails.Subcontratorproject(browser)
         browser = tenderDetails.suppliertender(browser)
         time.sleep(1)
         browser = tenderDetails.Actionslist(browser)
         time.sleep(2)
         browser = tenderDetails.uploadTendererdocument(browser)
         browser.implicitly_wait(5)
         time.sleep(1)
         uploaddoc = DataDriver()
         uploaddoc_path = uploaddoc.readfromXML(
             folder_path + '\Object\Object.xml', 'eTender',
             'delete')  #Delete option exists after uploading docs
         time.sleep(1)
         upload_document = browser.find_element_by_xpath(
             uploaddoc_path)  #Delete option
         time.sleep(1)
         uploaddocument = upload_document.text
         self.assertEqual(uploaddocument, 'Delete')
         time.sleep(1)
         browser = tenderDetails.deletedocuments(browser)
         time.sleep(1)
         logs.info("Test Case No : 100030 Passed Successfully")
     except Exception:
         logs.error("Validation with Test Case No: 100030 failed")
         browser.save_screenshot(fullpath)
         traceback.print_exc(file=sys.stdout)
         self.fail("Test Case No: 100030 failed")
         browser.implicitly_wait(5)
     finally:
         LauncheTender1.closebrowser(browser)
    def test_invitecolleaguesearch(self):
        try:
            browserInstance = setupValue()
            browser = browserInstance.setupfunction()
            browser.implicitly_wait(5)
            time.sleep(1)
            LauncheTender1 = LauncheTenderclass()
            browser = LauncheTender1.openURL(browser)
            browser = LauncheTender1.subcontractorValidlogin(browser)
            time.sleep(1)
            browser = LauncheTender1.list_project(browser)
            tenderDetails = Tenderdetails()
            time.sleep(1)
            browser = tenderDetails.Subcontratorproject(browser)
            browser = tenderDetails.suppliertender(browser)
            itemDetails_actions = ItemDetails()
            time.sleep(1)
            browser = itemDetails_actions.moreactions(browser)
            time.sleep(1)
            browser = itemDetails_actions.invitecolleague(browser)
            time.sleep(1)

            browser = itemDetails_actions.invitecolleagueSearch(browser)
            time.sleep(2)
            emailSearch1 = DataDriver()
            emailSearch = []
            emailSearch_path = emailSearch1.readfromXML(
                folder_path + '\Object\Itemsobject.xml', 'eTender',
                'searchemail')
            time.sleep(1)
            emailSearch = browser.find_elements_by_xpath(
                emailSearch_path)  #Verifying search results
            self.assertEqual(emailSearch[0].text, '*****@*****.**')
            #if len(emailSearch) == 1 and (self.assertEqual(emailSearch[0].text,'*****@*****.**')):
            if len(emailSearch) == 1:
                print("pass")
            else:
                self.fail("Validation with Test Case No: TC1033 failed")
            logs.info("Test Case No : TC1033 Passed Successfully")
        except Exception:
            logs.error("Validation with Test Case No: TC1033 failed")
            browser.save_screenshot(fullpath)
            traceback.print_exc(file=sys.stdout)
            self.fail("Test Case No: TC1033 failed")
            browser.implicitly_wait(5)
        finally:
            LauncheTender1.closebrowser(browser)
Beispiel #23
0
 def test_deletingNotes(self):
     try:
         browserInstance = setupValue()
         browser = browserInstance.setupfunction()
         browser.implicitly_wait(5)
         time.sleep(1)
         LauncheTender1 = LauncheTenderclass()
         browser = LauncheTender1.openURL(browser)
         browser.implicitly_wait(5)
         time.sleep(1)
         browser = LauncheTender1.subcontractorValidlogin(browser)
         browser = LauncheTender1.list_Organisation(browser)
         time.sleep(1)
         browser = LauncheTender1.verifyorganisationdetails(browser)
         browser = LauncheTender1.list_project(browser)
         time.sleep(1)
         tenderDetails = Tenderdetails()
         browser = tenderDetails.Subcontratorproject(browser)
         time.sleep(1)
         browser = tenderDetails.suppliertender(browser)
         time.sleep(4)
         browser = tenderDetails.deleteNotes(browser)
         time.sleep(1)
         browser.implicitly_wait(5)
         notesbubble = DataDriver()
         time.sleep(1)
         notesbubble_path = notesbubble.readfromXML(
             folder_path + '\Object\Object.xml', 'eTender',
             'notesbubble')  #notesbubble
         time.sleep(1)
         notes_bubble = browser.find_element_by_xpath(
             notesbubble_path)  #Webelement for notesbubble
         if notes_bubble.is_displayed():
             print("PASS")
         else:
             print("FAIL")
         time.sleep(2)
         logs.info("Test Case No : 100096 Passed Successfully")
     except Exception:
         logs.error("Validation with Test Case No: 100096 failed")
         browser.save_screenshot(fullpath)
         traceback.print_exc(file=sys.stdout)
         self.fail("Test Case No: 100096 failed")
         browser.implicitly_wait(5)
     finally:
         LauncheTender1.closebrowser(browser)
 def test_dialogboxtoAddnote(self):
     try:
         browserInstance = setupValue()
         browser = browserInstance.setupfunction()
         browser.implicitly_wait(5)
         time.sleep(1)
         LauncheTender1 = LauncheTenderclass()
         browser = LauncheTender1.openURL(browser)
         browser.implicitly_wait(5)
         time.sleep(1)
         browser = LauncheTender1.subcontractorValidlogin(browser)
         browser = LauncheTender1.list_Organisation(browser)
         time.sleep(1)
         browser = LauncheTender1.verifyorganisationdetails(browser)
         browser = LauncheTender1.list_project(browser)
         tenderDetails = Tenderdetails()
         time.sleep(1)
         browser = tenderDetails.Subcontratorproject(browser)
         browser = tenderDetails.suppliertender(browser)
         time.sleep(1)
         browser = tenderDetails.hoverThemousefornoteButton(browser)
         time.sleep(1)
         browser = tenderDetails.dialogueBoxtoAddaNote(browser)
         time.sleep(2)
         dialogbox1 = DataDriver()
         dialogbox_path = dialogbox1.readfromXML(
             folder_path + '\Object\Object.xml', 'eTender',
             'dialogbox')  #dialogbox
         time.sleep(1)
         add_noteswindow = browser.find_element_by_xpath(
             dialogbox_path)  #Webelement for dialogbox
         time.sleep(1)
         windowtitle = add_noteswindow.text
         time.sleep(1)
         self.assertEqual(windowtitle, 'Add a note')
         time.sleep(2)
         logs.info("Test Case No : 100023 Passed Successfully")
     except Exception:
         logs.error("Validation with Test Case No: 100023 failed")
         browser.save_screenshot(fullpath)
         traceback.print_exc(file=sys.stdout)
         self.fail("Test Case No: 100023 failed")
         browser.implicitly_wait(5)
     finally:
         LauncheTender1.closebrowser(browser)
Beispiel #25
0
 def test_submittender(self):
     try:
         browserInstance = setupValue()
         browser = browserInstance.setupfunction()
         browser.implicitly_wait(5)
         time.sleep(1)
         LauncheTender1 = LauncheTenderclass()
         browser = LauncheTender1.openURL(browser)
         browser.implicitly_wait(5)
         browser = LauncheTender1.subcontractorValidlogin(browser)
         time.sleep(1)
         browser = LauncheTender1.list_Organisation(browser)
         browser = LauncheTender1.verifyorganisationdetails(browser)
         time.sleep(1)
         browser = LauncheTender1.list_project(browser)
         tenderDetails = Tenderdetails()
         time.sleep(1)
         browser = tenderDetails.Subcontratorproject(browser)
         browser = tenderDetails.suppliertender(browser)
         tenderDetails_submit = SubmitTenderclass()
         browser.implicitly_wait(5)
         time.sleep(1)
         browser = tenderDetails_submit.submitTender(browser)
         browser.implicitly_wait(5)
         time.sleep(1)
         confirmsubmit = DataDriver()
         confirmsubmit_path = confirmsubmit.readfromXML(
             folder_path + '\Object\Object.xml', 'eTender', 'confirmsubmit')
         time.sleep(1)
         confirmsubmit_element = browser.find_element_by_xpath(
             confirmsubmit_path
         )  #Verifying Webelement for Confirm Submit button
         if confirmsubmit_element.is_displayed():
             print("pass")
         else:
             print("fail")
         logs.info("Test Case No : 100034 Passed Successfully")
     except Exception:
         logs.error("Validation with Test Case No: 100034 failed")
         browser.save_screenshot(fullpath)
         traceback.print_exc(file=sys.stdout)
         self.fail("Test Case No: 100034 failed")
         browser.implicitly_wait(5)
     finally:
         LauncheTender1.closebrowser(browser)
Beispiel #26
0
 def test_invitecolleaguenotinthelist(self):
     try:
         browserInstance = setupValue()
         browser = browserInstance.setupfunction()
         browser.implicitly_wait(5)
         time.sleep(1)
         LauncheTender1 = LauncheTenderclass()
         browser = LauncheTender1.openURL(browser)
         browser = LauncheTender1.subcontractorValidlogin(browser)
         time.sleep(1)
         browser = LauncheTender1.list_project(browser)
         tenderDetails = Tenderdetails()
         time.sleep(1)
         browser = tenderDetails.Subcontratorproject(browser)
         browser = tenderDetails.suppliertender(browser)
         itemDetails_actions = ItemDetails()
         time.sleep(1)
         browser = itemDetails_actions.moreactions(browser)
         time.sleep(1)
         browser = itemDetails_actions.invitecolleague(browser)
         time.sleep(1)
         browser = itemDetails_actions.invitecolleaguenotinthelist(browser)
         time.sleep(1)
         browser = itemDetails_actions.emailnotinthelist(browser)
         time.sleep(1)
         emailinvitemessage1 = DataDriver()
         emailinvitemessage_path = emailinvitemessage1.readfromXML(
             folder_path + '\Object\Itemsobject.xml', 'eTender',
             'invitationsent')
         time.sleep(1)
         emailinvitemessage = browser.find_element_by_xpath(
             emailinvitemessage_path
         )  #Verifying successful message after invite
         self.assertEqual(emailinvitemessage.text,
                          'Colleague invitation sent')
         logs.info("Test Case No : TC1032 Passed Successfully")
     except Exception:
         logs.error("Validation with Test Case No: TC1032 failed")
         browser.save_screenshot(fullpath)
         traceback.print_exc(file=sys.stdout)
         self.fail("Test Case No: TC1032 failed")
         browser.implicitly_wait(5)
     finally:
         LauncheTender1.closebrowser(browser)
Beispiel #27
0
 def test_verifycolleaguelist(self):
     try:
         browserInstance = setupValue()
         browser = browserInstance.setupfunction()
         browser.implicitly_wait(5)
         time.sleep(1)
         LauncheTender1 = LauncheTenderclass()
         browser = LauncheTender1.openURL(browser)
         browser = LauncheTender1.subcontractorValidlogin(browser)
         time.sleep(1)
         orgInstance=Organizationclass()
         orgInstance.OpenaddUser(browser)
         time.sleep(1)
         firstuser,seconduser = orgInstance.Userslist(browser)
         time.sleep(1)
         browser = LauncheTender1.list_Organisation(browser)
         time.sleep(1)
         browser = LauncheTender1.list_project(browser)
         tenderDetails = Tenderdetails()
         time.sleep(1)
         browser = tenderDetails.Subcontratorproject(browser)
         browser = tenderDetails.suppliertender(browser)
         itemDetails_actions = ItemDetails()
         time.sleep(1)
         browser = itemDetails_actions.moreactions(browser)
         time.sleep(1)
         browser = itemDetails_actions.invitecolleague(browser)
         time.sleep(1)
         currentorgemails1 = DataDriver()
         currentorgemails = []
         currentorgemails_path = currentorgemails1.readfromXML(folder_path+'\Object\Itemsobject.xml','eTender','currentorgemails')
         time.sleep(1)
         currentorgemails = browser.find_elements_by_xpath(currentorgemails_path) #Verifying current organisaion emails
         self.assertEqual(firstuser, currentorgemails[0].text)
         self.assertEqual(seconduser,currentorgemails[1].text)
         logs.info("Test Case No : TC1031 Passed Successfully")
     except Exception:
         logs.error("Validation with Test Case No: TC1031 failed")
         browser.save_screenshot(fullpath)
         traceback.print_exc(file=sys.stdout)
         self.fail("Test Case No: TC1031 failed")
         browser.implicitly_wait(5)
     finally:
         LauncheTender1.closebrowser(browser)
 def test_Confirmsubmittender(self):
     try:
         browserInstance = setupValue()
         browser = browserInstance.setupfunction()
         browser.implicitly_wait(5)
         LauncheTender1 = LauncheTenderclass()
         browser = LauncheTender1.openURL(browser)
         browser.implicitly_wait(5)
         browser = LauncheTender1.subcontractorValidlogin(browser)
         browser = LauncheTender1.list_Organisation(browser)
         browser = LauncheTender1.verifyorganisationdetails(browser)
         browser = LauncheTender1.list_project(browser)
         tenderDetails = Tenderdetails()
         browser = tenderDetails.Subcontratorproject(browser)
         browser = tenderDetails.suppliertender(browser)
         tenderDetails_submit = SubmitTenderclass()
         browser.implicitly_wait(5)
         browser = tenderDetails_submit.submitTender(browser)
         browser = tenderDetails_submit.confirmTendersubmission(browser)
         browser.implicitly_wait(5)
         tendersubmit = DataDriver()
         tendersubmit_path = tendersubmit.readfromXML(
             folder_path + '\Object\Object.xml', 'eTender',
             'tendersubmitted')
         tendersubmit_element = browser.find_element_by_xpath(
             tendersubmit_path)  #Verifying Webelement for Projectname
         if tendersubmit_element.is_displayed():
             print("pass")
         else:
             print("fail")
         reopentender = ReopentenderusingRESTAPIclass()
         accesstoken = reopentender.AuthunticateAPI()
         reopentender.ReopentenderusingRESTAPI(accesstoken)
         logs.info("Test Case No : 100035 Passed Successfully")
     except Exception:
         logs.error("Validation with Test Case No: 100035 failed")
         browser.save_screenshot(fullpath)
         traceback.print_exc(file=sys.stdout)
         self.fail("Test Case No: 100035 failed")
         browser.implicitly_wait(5)
     finally:
         LauncheTender1.closebrowser(browser)
 def test_viewdeleteditemsinsupplier(self):
     try:
         browserInstance = setupValue()
         browser = browserInstance.setupfunction()
         browser.implicitly_wait(5)
         LauncheTender1 = LauncheTenderclass()
         browser = LauncheTender1.openURL(browser)
         browser.implicitly_wait(5)
         browser = LauncheTender1.subcontractorValidlogin(browser)
         browser = LauncheTender1.list_Organisation(browser)
         browser = LauncheTender1.verifyorganisationdetails(browser)
         browser = LauncheTender1.list_project(browser)
         tenderDetails = Tenderdetails()
         browser = tenderDetails.Subcontratorproject(browser)
         browser = tenderDetails.suppliertender(browser)
         browser = tenderDetails.selectFilter(browser)
         time.sleep(1)
         browser = tenderDetails.selectdeleteditemsinsupplier(browser)
         browser = tenderDetails.closefilter(browser)
         time.sleep(1)
         deleteditems_XML = DataDriver()
         deleteditems = []
         deleteditems_path = deleteditems_XML.readfromXML(
             folder_path + '\Object\Estimatorvalue.xml', 'eTender',
             'deleteitems')
         deleteditems = browser.find_elements_by_xpath(
             deleteditems_path)  #Webelement for values
         time.sleep(1)
         deleteditems1 = deleteditems[31].text
         time.sleep(1)
         self.assertEqual(deleteditems1, 'Deleted item')
         logs.info("Test Case No : 100331 Passed Successfully")
     except Exception:
         logs.error("Validation with Test Case No: 100331 failed")
         browser.save_screenshot(fullpath)
         traceback.print_exc(file=sys.stdout)
         self.fail("Test Case No: 100331 failed")
         browser.implicitly_wait(5)
     finally:
         LauncheTender1.closebrowser(browser)
 def test_tenderdetails(self):
     try:
         browserInstance = setupValue()
         browser = browserInstance.setupfunction()
         browser.implicitly_wait(5)
         LauncheTender1 = LauncheTenderclass()
         browser = LauncheTender1.openURL(browser)
         browser.implicitly_wait(5)
         browser = LauncheTender1.subcontractorValidlogin(browser)
         browser = LauncheTender1.list_Organisation(browser)
         browser = LauncheTender1.verifyorganisationdetails(browser)
         browser = LauncheTender1.list_project(browser)
         tenderDetails = Tenderdetails()
         browser = tenderDetails.Subcontratorproject(browser)
         browser.implicitly_wait(5)
         tradelist = DataDriver()
         trades = []
         tradefirst_path = tradelist.readfromXML(
             folder_path + '\Object\Object.xml', 'eTender', 'quicktenders')
         trades = browser.find_elements_by_xpath(
             tradefirst_path)  #Trades list
         time.sleep(3)
         #tradesecond_path = tradelist.readfromXML(folder_path+'\Object\Object.xml','eTender','tradesecondsub')
         #tradesecond = browser.find_element_by_xpath(tradesecond_path) #Trades list
         #time.sleep(1)
         trade1 = trades[0].text
         trade2 = trades[1].text
         self.assertEqual(trade1, 'A - Preliminaries - A1303 - Te..')
         self.assertEqual(trade2, 'A - Preliminaries - A1304 - Ed..')
         logs.info("Test Case No : 100007 Passed Successfully")
     except Exception:
         logs.error("Validation with Test Case No: 100007 failed")
         browser.save_screenshot(fullpath)
         traceback.print_exc(file=sys.stdout)
         self.fail("Test Case No: 100007 failed")
         browser.implicitly_wait(5)
     finally:
         LauncheTender1.closebrowser(browser)