How to use the getgauge.python.step function in getgauge

To help you get started, we’ve selected a few getgauge examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github google / earthenterprise / earth_enterprise / integration_test / step_impl / assets.py View on Github external
@step("Create map project  from layer ")
def create_map_project(project, layer):
  call(["/opt/google/bin/genewmapproject", "-o", os.path.join(MAP_PROJECT_PATH, project), os.path.join(MAP_LAYER_PATH, layer)],
       "Failed to create map project %s" % project)
github google / earthenterprise / earth_enterprise / integration_test / step_impl / assets.py View on Github external
@step("Create mercator imagery project ")
def create_merc_imagery_proj(project):
  do_create_imagery_proj(project, isMercator=True)
github google / earthenterprise / earth_enterprise / integration_test / step_impl / assets.py View on Github external
@step("Verify that the state of images for default project  is in ")
def verify_state_default_images_table(project, table):
  states = list_from_table(table)
  verify_state_default_images(project, states)
<table></table>
github google / earthenterprise / earth_enterprise / integration_test / step_impl / assets.py View on Github external
@step("Clean imagery resource ")
def clean_imagery_resource(resource):
  imagery_resource_operation("clean", resource)
github google / earthenterprise / earth_enterprise / integration_test / step_impl / assets.py View on Github external
@step("Create mercator imagery resource  from ")
def create_merc_imagery_resource(resource, srcPath):
  srcPath = os.path.join(get_src_data_path(), srcPath)
  do_create_imagery_resource(resource, srcPath, isMercator=True)
github google / earthenterprise / earth_enterprise / integration_test / step_impl / assets.py View on Github external
@step("Create map database  from imagery project  and map project ")
def create_map_database(database, imagery, mapProject):
  call(["/opt/google/bin/genewmapdatabase", "-o", os.path.join(DATABASE_PATH, database),
        "--imagery", os.path.join(IMAGERY_PROJECT_PATH, imagery),
        "--map", os.path.join(MAP_PROJECT_PATH, mapProject), "--mercator"],
       "Failed to create map database %s" % database)
github google / earthenterprise / earth_enterprise / integration_test / step_impl / assets.py View on Github external
@step("Create terrain project ")
def create_terrain_proj(project):
  call(["/opt/google/bin/genewterrainproject", "-o", os.path.join(TERRAIN_PROJECT_PATH, project)],
       "Failed to create terrain project %s" % project)
github google / earthenterprise / earth_enterprise / integration_test / step_impl / genewimageryresource.py View on Github external
@step("perform GEE new imagery resource having empty directory test")
def geenewimageryresourceNegativeCaseEmptyDir() :
   testDir = ""
   executeCommand(testDir)
   assert (doesKhassetFileExist(outputROOT+"/"+testDir) == False)
github google / earthenterprise / earth_enterprise / integration_test / step_impl / assets.py View on Github external
@step("Build vector resource ")
def build_vector_resource(resource):
  vector_resource_operation("build", resource)
github getgauge / gauge-python / skel / step_impl / step_impl.py View on Github external
@step("Almost all words have vowels ")
def assert_words_vowel_count(table):
    actual = [str(number_of_vowels(word))
              for word in table.get_column_values_with_name("Word")]
    expected = [str(count)
                for count in table.get_column_values_with_name("Vowel Count")]
    assert expected == actual
<table></table>