Skip to content

Instantly share code, notes, and snippets.

@akrnmd
Last active October 3, 2020 00:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akrnmd/bd5869983b6cbddb3d5573c4734f532f to your computer and use it in GitHub Desktop.
Save akrnmd/bd5869983b6cbddb3d5573c4734f532f to your computer and use it in GitHub Desktop.
UseGherkinSample. #SenseTalk #eggplant
(* add to file of "UseGherkinSample.feature" *)
//Feature: Get Screen Capture
// Scenario: Get Screen Capture
// Given connect "localhost"
// When get screenshot
// Then disconnect "localhost"
(* UseGherkinSample.script *)
to handle connect_STR
params str1
connect str1
wait 10
end connect_STR
to handle get_screenshot
CaptureScreen(Name: "MyCaptureImage", increment:yes)
end get_screenshot
to handle disconnect_STR
params str1
disconnect str1
end disconnect_STR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment