# # FAT006 - This test covers additional test requirements identified during the FAT test cycle. # class Test_06_FAT006 < Test::Unit::TestCase # #Test we can logon to the system using the PUW EFT administrator user’s login credentials # def test_01_check_logon login(PUW_ADMIN, PUW_ADMIN_PWD, 'y') end # #OBJ117 – Cannot enter an overlapping contract for a customer:- #Attempt to create a contract for the PUW_EDEN1 customer that overlaps the PUW_EDEN1 contract #We assert that this should fail and give us the correct error message # def test_02_overlapping_contracts_should_fail @@ie.goto(MAINTAIN_CONTRACTS) @@ie.wait set_contract('EDEN overlap_contract',PUW_MLT_CUST,'EDEN GRC_contracts','Multiple Day','N',futuredate(99),futuredate(140),'n') @@ie.goto(MAINTAIN_CONTRACTS) @@ie.wait set_contract('EDEN overlap_contract2',PUW_MLT_CUST,'EDEN GRC_contracts','Multiple Day','N',futuredate(100),futuredate(140),'n') end # #OBJ118 Cannot enter a nomination for a closed contract:- #Attempt to enter a nomination for the PUW_EDEN1 contract is not possible because the contract should #not be available when you try to nominate # def test_03_cannot_nominate_for_a_closed_contract @@ie.goto(MAINTAIN_CONTRACTS) @@ie.wait #click the link for the PUW_EDEN1 contract. This may not be the same if the initial data upload changes or the #menu changes it's currently selected as the 20th in the list. # @@ie.text_field(:name, 'P_CONTRACT_NUMBER').set('PUW_EDEN1') @@ie.button(:value, "Find").click @@ie.wait @@ie.link(:index, 20).click @@ie.wait @@ie.select_list(:name, 'p_status').select('Closed') @@ie.button(:value, "Update").click @@ie.wait assert(@@ie.contains_text('Success!'),'The contract was not updated correctly : '+geterrormess(@@ie)) # #Log back into the system as the PUW_EDEN1 user. # login(PUW_CUST1,PUW_CUST1_PWD,'y') @@ie.goto(ENTER_NOMS) @@ie.wait # #Ensure that the contract is no longer selectable on the nominations screen # assert_nil(@@ie.contains_text( '