Showing posts with label jump to step definition from feature file. Show all posts
Showing posts with label jump to step definition from feature file. Show all posts

Tuesday, July 14, 2020

Cucumer settings to jump directly to step defination from feature file using Ctrl + click | Protractor Typescript

Install vscode extension for cucumber (Cucumber (Gherkin) Full Support) and add the below code under ".vscode/settings.json" file.
 
It works only with Open Folder (for example say you open ~/bdd-prj), where settings.json is placed at ~/bdd-prj/.vscode/settings.json


// Save the below code in settings.json file under.vscode folder

{
    "cucumberautocomplete.steps": [
        "e2e/src/steps/*.ts"        
    ],
    "cucumberautocomplete.syncfeatures""e2e/src/features/*feature",
    "cucumberautocomplete.strictGherkinCompletion"true

Read CSV from S3

 import csv def count_records(csv_file):     record_count = 0     first_line = None     last_line = None     # Open the CSV file and read it...