Exemplo n.º 1
0
 def test_scenario7(self):
     """
         Scenario 7: Successfully creating a local association from an exported file:
             Given I create a data source uploading a "<data>" file
             And I wait until the source is ready less than <time_1> secs
             And I create a dataset
             And I wait until the dataset is ready less than <time_2> secs
             And I create an association
             And I wait until the association is ready less than <time_3> secs
             And I export the association to "<exported_file>"
             When I create a local association from the file "<exported_file>"
             Then the association ID and the local association ID match
             Examples:
             | data                | time_1  | time_2 | time_3 | exported_file
             | ../data/iris.csv | 10      | 10     | 50 | ./tmp/association.json
     """
     print self.test_scenario7.__doc__
     examples = [
         ['data/iris.csv', '10', '10', '500', './tmp/association.json']]
     for example in examples:
         print "\nTesting with:\n", example
         source_create.i_upload_a_file(self, example[0])
         source_create.the_source_is_finished(self, example[1])
         dataset_create.i_create_a_dataset(self)
         dataset_create.the_dataset_is_finished_in_less_than(self, example[2])
         association_create.i_create_an_association_from_dataset(self)
         association_create.the_association_is_finished_in_less_than(self, example[3])
         association_create.i_export_association(self, example[4])
         association_create.i_create_local_association_from_file(self, example[4])
         association_create.check_association_id_local_id(self)
Exemplo n.º 2
0
 def test_scenario7(self):
     """
         Scenario 7: Successfully creating a local association from an exported file:
             Given I create a data source uploading a "<data>" file
             And I wait until the source is ready less than <time_1> secs
             And I create a dataset
             And I wait until the dataset is ready less than <time_2> secs
             And I create an association
             And I wait until the association is ready less than <time_3> secs
             And I export the association to "<exported_file>"
             When I create a local association from the file "<exported_file>"
             Then the association ID and the local association ID match
             Examples:
             | data                | time_1  | time_2 | time_3 | exported_file
             | ../data/iris.csv | 10      | 10     | 50 | ./tmp/association.json
     """
     print self.test_scenario7.__doc__
     examples = [
         ['data/iris.csv', '10', '10', '500', './tmp/association.json']]
     for example in examples:
         print "\nTesting with:\n", example
         source_create.i_upload_a_file(self, example[0])
         source_create.the_source_is_finished(self, example[1])
         dataset_create.i_create_a_dataset(self)
         dataset_create.the_dataset_is_finished_in_less_than(self, example[2])
         association_create.i_create_an_association_from_dataset(self)
         association_create.the_association_is_finished_in_less_than(self, example[3])
         association_create.i_export_association(self, example[4])
         association_create.i_create_local_association_from_file(self, example[4])
         association_create.check_association_id_local_id(self)