Beispiel #1
0
    def test_cc_data_entry_search_doc_type_fed_with(self):
        # Open CertCapture
        capture_login_actions.capture_open_portal()

        # Login to CertCapture
        capture_login_actions.cc_login_from_google_sheet('Nikki')

        # Change company
        general.actions.change_company('NA Automation Company -- DO NOT TOUCH')

        # Change client
        general.actions.change_client('QA_Test_Automation')

        # Navigate to Data Entry -> Validate Documents
        general.actions.click('validate documents')

        # Search by document typ
        data_entry.actions.search('document type', 'Federal Withholding')

        # Click search button
        data_entry.actions.click('search')

        # Verify results
        data_entry.audits.compare_results('hartley_auto',
                                          'data_entry_search_fedwith')
Beispiel #2
0
    def test_cc_data_entry_search_priority_4(self):
        # Open CertCapture
        capture_login_actions.capture_open_portal()

        # Login to CertCapture
        capture_login_actions.cc_login_from_google_sheet('Joe DataEntry')

        # Change company
        general.actions.change_company('JCAutomationCompany-DO NOT TOUCH')

        # Change client
        general.actions.change_client('Data Entry 1')

        # Navigate to Data Entry -> Validate Documents
        general.actions.click('validate documents')

        # Search by priority
        data_entry.actions.search('priority', '4 - Critical')

        # Click search button
        data_entry.actions.click('search')

        # Sort by certificate id
        data_entry.actions.sort_search_results('certificate id')

        # Verify results
        data_entry.audits.compare_results('hartley_auto',
                                          'data_entry_search_priority_4')
Beispiel #3
0
    def test_cc_data_entry_search_doc_type_sales_and_use_tax(self):
        # Open CertCapture
        capture_login_actions.capture_open_portal()

        # Login to CertCapture
        capture_login_actions.cc_login_from_google_sheet('Pat')

        # Change company
        general.actions.change_company('QA_Automation_Clark')

        # Change client
        general.actions.change_client('Data_Entry_DocType_FedWith')

        # Navigate to Data Entry -> Validate Documents
        general.actions.click('validate documents')

        # Search by document type
        data_entry.actions.search('document type', 'Use Tax')

        # Click search button
        data_entry.actions.click('search')

        # Verify results
        data_entry.audits.compare_results('hartley_auto',
                                          'data_entry_search_sales_2')
Beispiel #4
0
    def test_cc_data_entry_search_bucket_internal(self):
        if test_base.quick_fails == True:
            num = 1 // 0  # CHANGE
        # Open CertCapture
        capture_login_actions.capture_open_portal()

        # Login to CertCapture
        capture_login_actions.cc_login_from_google_sheet('Pat')

        # Change company
        general.actions.change_company('QA_Automation_Clark')

        # Change client
        general.actions.change_client('Bucket_Internal')

        # Navigate to Data Entry -> Validate Documents
        general.actions.click('validate documents')

        # Verify count - Two documents, one internal
        data_entry.audits.verify_search_count(2)

        # Search by bucket - 'Internal'
        data_entry.actions.search('bucket', 'Internal')

        # Click search button
        data_entry.actions.click('search')

        # Verify results
        data_entry.audits.compare_results('hartley_auto',
                                          'data_entry_search_internal')
Beispiel #5
0
    def test_cc_data_entry_search_doc_type_multi(self):
        # Open CertCapture
        capture_login_actions.capture_open_portal()

        # Login to CertCapture
        capture_login_actions.cc_login_from_google_sheet('Pat')

        # Change company
        general.actions.change_company('QA_Automation_Clark')

        # Change client
        general.actions.change_client('Data_Entry_DocType_FedWith')

        # Navigate to Data Entry -> Validate Documents
        general.actions.click('validate documents')

        # Search by multiple document types
        data_entry.actions.search('document type list',
                                  ['Use Tax', 'Federal Withholding'])

        # Click search button
        data_entry.actions.click('search')

        # Sort by priority
        data_entry.actions.sort_search_results('priority')

        # Verify results
        data_entry.audits.compare_results('hartley_auto',
                                          'data_entry_search_multi_2b')
Beispiel #6
0
    def test_cc_data_entry_search_multi_fields(self):
        # Open CertCapture
        capture_login_actions.capture_open_portal()

        # Login to CertCapture
        capture_login_actions.cc_login_from_google_sheet('Pat')

        # Change company
        general.actions.change_company('QA_Automation_Clark')

        # Change client
        general.actions.change_client('Data_Entry')

        # Navigate to Data Entry -> Validate Documents
        general.actions.click('validate documents')

        # Add multiple search parameters
        data_entry.actions.search('exposure zone', 'Wyoming')
        data_entry.actions.search('priority', '2 - Normal')
        data_entry.actions.search('document type', 'Sales and Use Tax')
        data_entry.actions.search('stage', 'Ready For Validation')
        data_entry.actions.search('source', 'CertExpress')

        # Click search button
        data_entry.actions.click('search')

        # Verify results
        data_entry.audits.compare_results('hartley_auto',
                                          'data_entry_search_multi_fields')
Beispiel #7
0
    def test_cc_data_entry_search_source_retail(self):
        # Open CertCapture
        capture_login_actions.capture_open_portal()

        # Login to CertCapture
        capture_login_actions.cc_login_from_google_sheet('Joe DataEntry')

        # Change company
        general.actions.change_company('JCAutomationCompany-DO NOT TOUCH')

        # Change client
        general.actions.change_client('Data Entry 1')

        # Navigate to Data Entry -> Validate Documents
        general.actions.click('validate documents')

        # Search by source
        data_entry.actions.search('source', 'Retail')

        # Click search button
        data_entry.actions.click('search')

        # Verify results
        data_entry.audits.compare_results('hartley_auto',
                                          'data_entry_search_retail')
Beispiel #8
0
	def test_cc_retail_customer_information_download(self):
		# Open CertCapture
		capture_login_actions.capture_open_portal()
		
		# Login to CertCapture
		capture_login_actions.cc_login_from_google_sheet('Bob Retail')

		# Search certificates by customer number
		retail_search_actions.retail_search_pick_search_field('customer number', 'cust_9')
		
		# Execute retail search
		retail_search_actions.actions.click(''search')		
	
		# Click the second certificate in the first row of search results
		retail_search_actions.click_search_result_certificate(1, 2)
		
		# Storing the current newest PDF file in the downloads directory
		file = retail_search_actions.check_for_newest_pdf_in_download_directory()
		
		# Clicks the 'Download' button on the 'Customer Information' modal
		retail_search_actions.click_certificate_download_button()
		
		# Check for the newest PDF file in the downloads directory
		retail_search_actions.check_for_newest_pdf_in_download_directory()
		
		# Checking that a new file has been added to the downloads directory
		retail_search_actions.verify_new_file_download(file)
Beispiel #9
0
	def test_cc_retail_clear_screen_button(self):
		# Open CertCapture
		capture_login_actions.capture_open_portal()
		
		# Login to CertCapture
		capture_login_actions.cc_login_from_google_sheet('Bob Retail')		
		
		# Execute a blank retail search
		retail_search_actions.actions.click(''search')
		
		# Storing search result count for a blank search
		count = retail_search_actions.retail_search_count()
		
		# Open search modal again
		retail_search_actions.open_search_modal()
		
		# Search certificates by email
		retail_search_actions.retail_search_pick_search_field('customer name', 'Johnny Test')
		retail_search_actions.retail_search_pick_search_field('phone', '1234567890')
		retail_search_actions.retail_search_pick_search_field('email', '*****@*****.**')
		retail_search_actions.retail_search_pick_search_field('city', 'Townsville')
		retail_search_actions.retail_search_pick_search_field('state', 'California')
		retail_search_actions.retail_search_pick_search_field('zip', '90210')
		retail_search_actions.retail_search_pick_search_field('customer number', '1886')
		retail_search_actions.retail_search_pick_search_field('id', 'doc_id')
		retail_search_actions.retail_search_pick_search_field('exposure zone', 'New York')
		
		# Click 'Clear Screen' button
		retail_search_actions.click_clear_screen_button()
		time.sleep(2)
		# Execute a blank retail search
		retail_search_actions.actions.click(''search')
		
		assert count == retail_search_actions.retail_search_count()
Beispiel #10
0
    def test_cc_data_entry_documents_release_document(self):
        # Open CertCapture
        capture_login_actions.capture_open_portal()

        # Login to CertCapture
        capture_login_actions.cc_login_from_google_sheet('Nick')

        # Navigate to Data Entry -> Validate Documents
        general.actions.click('validate documents')

        # Sort by certificate id
        data_entry.actions.sort_search_results('certificate id')

        # Verify results - Only check first row
        #rows = [1]
        #data_entry.audits.compare_results_with_row_numbers('documents_expected', 'data_entry_release_document_1', rows)

        # Claim first document
        data_entry_actions.single_doc_stack_action('claim documents', 1)

        # Return to Data Entry -> Validate Documents
        #general.actions.click('validate documents')

        # Navigate to 'My Unfinished Documents'
        data_entry.actions.filer_documents('My Unfinished Documents')

        # Verify count in 'My Unfinished Documents' - should be one
        #data_entry_actions.verify_count(1)

        # Release document
        data_entry_actions.single_doc_stack_action('release documents', 1)
        '''	
		try:
			WebDriverWait(self.driver, 10).until(
				expected_conditions.element_to_be_clickable((By.XPATH, xpath_locators.data_entry_release_doc_alert_btn))
			)
		finally:
			self.driver.find_element_by_xpath(xpath_locators.data_entry_release_doc_alert_btn).click()
		
		
		
		time.sleep(4)
		
		self.driver.find_element_by_xpath(xpath_locators.data_entry_release_doc_alert_btn).click()
			
		time.sleep(2)
		'''

        # Navigate to 'Available Documents'
        data_entry.actions.filer_documents('Available Documents')

        # Sort by certificate id
        data_entry.actions.sort_search_results('certificate id')

        # Verify that claimed document has been released back to 'Available Documents' - Only check first row
        #rows = [1]
        #data_entry.audits.compare_results_with_row_numbers('documents_expected', 'data_entry_release_document_1', rows)

        time.sleep(10)
Beispiel #11
0
    def test_cc_data_entry_documents_claimed_by_others(self):
        # Open CertCapture
        capture_login_actions.capture_open_portal()

        # Login to CertCapture
        capture_login_actions.cc_login_from_google_sheet('Nick')

        # Navigate to Data Entry -> Validate Documents
        general.actions.click('validate documents')

        # Navigate to 'Documents Claimed By Others'
        data_entry.actions.filer_documents('Documents Claimed By Others')

        # Sort by certificate id
        data_entry.actions.sort_search_results('certificate id')
Beispiel #12
0
	def test_cc_retail_logout(self):
		# Open CertCapture
		capture_login_actions.capture_open_portal()
		
		# Login to CertCapture
		capture_login_actions.cc_login_from_google_sheet('Joe Retail')
		
		# Close search modal
		retail_search_actions.close_search_modal()
		
		# Click 'Logout' button
		retail_search_actions.retail_logout()
		
		# Verify that the user has logged out
		retail_search_actions.verify_retail_logout()
Beispiel #13
0
	def test_cc_retail_search_button(self):
		# Open CertCapture
		capture_login_actions.capture_open_portal()
		
		# Login to CertCapture
		capture_login_actions.cc_login_from_google_sheet('Bob Retail')
		
		# Close search modal
		retail_search_actions.close_search_modal()
		time.sleep(3)
		# Click the 'Search' button
		retail_search_actions.open_search_modal()
		
		# Verify that the search modal is open
		retail_search_actions.verify_search_modal_open()
Beispiel #14
0
	def test_cc_retail_exemption_information_sort_address(self):
		# Open CertCapture
		capture_login_actions.capture_open_portal()
		
		# Login to CertCapture
		capture_login_actions.cc_login_from_google_sheet('Bob Retail')		

		# Execute a blank retail search
		retail_search_actions.actions.click(''search')
		
		# Sort search results by address
		retail_search_actions.retail_search_sort_results('CUSTOMER ADDRESS')
		
		# Compare results
		retail_search.audits.compare_results('retail_expected', 'retail_search_sort_address')
Beispiel #15
0
    def test_cc_data_entry_search_basic_search_0001(self):
        # Open CertCapture
        capture_login_actions.capture_open_portal()

        # Login to CertCapture
        capture_login_actions.cc_login_from_google_sheet('Nick')

        # Navigate to Data Entry -> Validate Documents
        #general.actions.click('validate documents')
        general.actions.click('validate documents')

        # Toggle to basic search - Can't click toggle switch....
        data_entry.actions.search_type_toggle('basic search')

        # Verify basic search field
        data_entry.audits.verify_basic_search_fields()
Beispiel #16
0
	def test_cc_retail_search_sort_customer_number(self):
		# Open CertCapture
		capture_login_actions.capture_open_portal()
		
		# Login to CertCapture
		capture_login_actions.cc_login_from_google_sheet('Joe Retail')		
		
		# Search certificates by customer number
		retail_search_actions.retail_search_pick_search_field('state', 'Alaska')

		# Execute a blank retail search
		retail_search_actions.actions.click(''search')

		# Sort search results by customer number
		retail_search_actions.retail_search_sort_results('number')
		
		# Compare results
		retail_search.audits.compare_results('retail_expected', 'retail_search_sort_customer_number')
Beispiel #17
0
	def test_cc_retail_search_sort_certificates(self):
		# Open CertCapture
		capture_login_actions.capture_open_portal()
		
		# Login to CertCapture
		capture_login_actions.cc_login_from_google_sheet('Bob Retail')		
		
		# Search certificates by customer number
		retail_search_actions.retail_search_pick_search_field('email', '*****@*****.**')

		# Execute a blank retail search
		retail_search_actions.actions.click(''search')

		# Sort search results by customer number
		retail_search_actions.retail_search_sort_results('certs')
		
		# Compare results
		retail_search.audits.compare_results('retail_expected', 'retail_search_sort_certificates')
Beispiel #18
0
    def test_cc_data_entry_search_customer_number(self):
        # Open CertCapture
        capture_login_actions.capture_open_portal()

        # Login to CertCapture
        capture_login_actions.cc_login_from_google_sheet('Bob')

        # Navigate to Data Entry -> Validate Documents
        general.actions.click('validate documents')

        # Search by certificate id
        data_entry.actions.search('customer number', 'cc00000001')

        # Click search button
        data_entry.actions.click('search')

        # Verify results
        data_entry.audits.compare_results('hartley_auto',
                                          'data_entry_search_customer')
Beispiel #19
0
    def test_cc_data_entry_search_location(self):
        # Open CertCapture
        capture_login_actions.capture_open_portal()

        # Login to CertCapture
        capture_login_actions.cc_login_from_google_sheet('Nick')

        # Change company
        general.actions.change_company('QA_Automation_Hartley')

        # Navigate to Data Entry -> Validate Documents
        general.actions.click('validate documents')

        # Search by location
        data_entry.actions.search('location', 'Joe NC')
        time.sleep(5)
        # Click search button
        data_entry.actions.click('search')
        time.sleep(3)
Beispiel #20
0
    def test_cc_data_entry_search_exposure_zone(self):
        # Open CertCapture
        capture_login_actions.capture_open_portal()

        # Login to CertCapture
        capture_login_actions.cc_login_from_google_sheet('Bob')

        # Navigate to Data Entry -> Validate Documents
        general.actions.click('validate documents')

        # Search by document category
        data_entry.actions.search('exposure zone', 'Indiana')

        # Click search button
        data_entry.actions.click('search')

        # Verify results
        data_entry.audits.compare_results('hartley_auto',
                                          'data_entry_search_exposure')
Beispiel #21
0
	def test_cc_retail_click_customer(self):
		# Open CertCapture
		capture_login_actions.capture_open_portal()
		
		# Login to CertCapture
		capture_login_actions.cc_login_from_google_sheet('Bob Retail')		
		
		# Search certificates by customer number
		customer = 'cust_1'
		retail_search_actions.retail_search_pick_search_field('customer number', customer)

		# Execute a blank retail search
		retail_search_actions.actions.click(''search')		

		# Click on the first row of search results
		retail_search_actions.click_search_result_row(1)			
			
		# Verify that the customer information modal for searched customer was opened
		retail_search_actions.verify_click_customer(customer)
Beispiel #22
0
    def test_cc_data_entry_documents_my_unfinished_documents(self):
        # Open CertCapture
        capture_login_actions.capture_open_portal()

        # Login to CertCapture
        capture_login_actions.cc_login_from_google_sheet('Nick')

        # Navigate to Data Entry -> Validate Documents
        general.actions.click('validate documents')

        # Navigate to 'My Unfinished Documents'
        data_entry.actions.filer_documents('My Unfinished Documents')

        # Sort by certificate id
        data_entry.actions.sort_search_results('certificate id')

        # Verify results in 'Documents Claimed By Others'
        #data_entry.audits.compare_results('documents_expected', 'data_entry_documents_claimed_by_others')
        time.sleep(10)
Beispiel #23
0
    def test_cc_data_entry_search_filename(self):
        # Open CertCapture
        capture_login_actions.capture_open_portal()

        # Login to CertCapture
        capture_login_actions.cc_login_from_google_sheet('Bob')

        # Navigate to Data Entry -> Validate Documents
        general.actions.click('validate documents')

        # Search by document category
        data_entry.actions.search('filename', 'blank_CA_BOE_230-D_Post.pdf')

        # Click search button
        data_entry.actions.click('search')

        # Verify results
        data_entry.audits.compare_results('hartley_auto',
                                          'data_entry_search_filename')
Beispiel #24
0
    def test_cc_data_entry_search_stage_reviewed(self):
        # Open CertCapture
        capture_login_actions.capture_open_portal()

        # Login to CertCapture
        capture_login_actions.cc_login_from_google_sheet('Bob')

        # Navigate to Data Entry -> Validate Documents
        general.actions.click('validate documents')

        # Search by stage
        data_entry.actions.search('stage', 'Reviewed')

        # Click search button
        data_entry.actions.click('search')

        # Verify results
        data_entry.audits.compare_results('hartley_auto',
                                          'data_entry_search_reviewed')
Beispiel #25
0
    def test_cc_data_entry_search_stage_ready_for_validation_escalated(self):
        # Open CertCapture
        capture_login_actions.capture_open_portal()

        # Login to CertCapture
        capture_login_actions.cc_login_from_google_sheet('Bob')

        # Navigate to Data Entry -> Validate Documents
        general.actions.click('validate documents')

        # Search by stage
        data_entry.actions.search('stage', 'Ready For Validation (Escalated)')

        # Click search button
        data_entry.actions.click('search')

        # Verify results - Use special function to account for adaptation of expected results
        data_entry.ready_for_validation_compare_results(
            'hartley_auto', 'data_entry_search_escalated')
Beispiel #26
0
    def test_cc_data_entry_search_last(self):
        # Open CertCapture
        capture_login_actions.capture_open_portal()

        # Login to CertCapture
        capture_login_actions.cc_login_from_google_sheet('Bob')

        # Navigate to Data Entry -> Validate Documents
        general.actions.click('validate documents')

        # Verify 'last page' link
        data_entry.audits.verify_search_last()

        # Go to last page
        data_entry.actions.search_go_to_last()

        # Verify results from rows 1 and 2
        rows = [1, 2]
        data_entry.audits.compare_results_with_row_numbers(
            'hartley_auto', 'data_entry_search_last_2', rows)
Beispiel #27
0
	def test_cc_retail_customer_information_edit(self):
		# Open CertCapture
		capture_login_actions.capture_open_portal()
		
		# Login to CertCapture
		capture_login_actions.cc_login_from_google_sheet('Bob Retail')

		# Search certificates by customer number
		retail_search_actions.retail_search_pick_search_field('customer number', 'cust_9')

		# Execute retail search
		retail_search_actions.actions.click(''search')

		# Click on the first row of search results
		retail_search_actions.click_search_result_row(1)
		
		# Click the customer edit button
		retail_search_actions.click_customer_edit_button()
		
		# Verify that the 'Edit Customer' modal appears
		retail_search_actions.verify_customer_edit_modal()
Beispiel #28
0
    def test_cc_data_entry_search_first(self):
        # Open CertCapture
        capture_login_actions.capture_open_portal()

        # Login to CertCapture
        capture_login_actions.cc_login_from_google_sheet('Bob')

        # Navigate to Data Entry -> Validate Documents
        general.actions.click('validate documents')

        # Verify 'next page' link
        data_entry.audits.verify_search_next()

        # Go to next page
        data_entry.actions.search_results_navigate_to_page('next')

        # Verify 'first page' link
        data_entry.audits.verify_search_first()

        # Go to first page
        data_entry.actions.search_go_to_first()
Beispiel #29
0
    def test_cc_data_entry_search_source_upload(self):
        # Open CertCapture
        capture_login_actions.capture_open_portal()

        # Login to CertCapture
        capture_login_actions.cc_login_from_google_sheet('Nick')

        # Change company
        general.actions.change_company('QA_Automation_Hartley')
        # Navigate to Data Entry -> Validate Documents
        general.actions.click('validate documents')

        # Search by source
        data_entry.actions.search('source', 'Upload')

        # Click search button
        data_entry.actions.click('search')

        # Verify results
        data_entry.audits.compare_results('hartley_auto',
                                          'data_entry_search_upload')
Beispiel #30
0
    def test_cc_data_entry_search_bucket_external(self):

        # Open CertCapture
        capture_login_actions.capture_open_portal()

        # Login to CertCapture
        capture_login_actions.cc_login_from_google_sheet('Nick')

        # Change company
        general.actions.change_company('QA_Automation_Hartley')

        # Navigate to Data Entry -> Validate Documents
        #general.actions.click('validate documents')
        general.actions.click('validate documents')
        if test_base.quick_fails == True:
            num = 1 // 0
        # Search by bucket - 'External'
        data_entry.actions.search('bucket', 'External')

        # Click search button
        data_entry.actions.click('search')