GithubHelp home page GithubHelp logo

scenario_parsing's Introduction

Turning scenarios into scenario tables (sort of...)

Doing repetitive stuffs (turning scenario into scenario tables is a great example) drives me nuts, so I wrote this little thing. Hopefully it will make your life easier. Any contribution is welcomed.

This will parse the txt file you give it and you have the number, subject, actions columns done, but you will still have to do 'Other Data/Objects' and 'Object Acted Upon' columns

Precondition

Your scenarios have to be written in a very structured format for this to work. The recommended format is:

[subject, all lowercase, singular] [verb, 3rd person] [other data/objects] with/to [object acted upon]

Example:

checkout GUI checks out call numbers with checkout controller

How to use:

  1. Download and install ruby (if your computer doesn’t have it, which I doubt) [Instruction here for Windows] (http://corlewsolutions.com/articles/article-19-install-ruby-on-windows-7-32-bit-or-64-bit)

  2. Download the file and save it into a folder (let’s say folder scenario_homework)

  3. Create a new text file (let’s say, uc05.txt) and copy the scenario you wrote onto the file

  4. Open terminal (or run cmd in Windows), navigate to folder scenario_homework

    [Instructions] (http://stackoverflow.com/questions/5576321/need-to-navigate-to-a-folder-in-command-prompt) here for Windows user.

    For mac and linux user: [Instructions] (http://askubuntu.com/questions/232442/how-do-i-navigate-between-directories-in-terminal)

  5. Run this in your command line:

ruby scenario_parsing.rb [scenario file name] [destination csv file name]

for example

ruby scenario_parsing.rb uc05.txt uc05.csv
  1. The uc05.csv is for you to enjoy. Use excel, google spreadsheet or whatever to do the last 2 columns

scenario_parsing's People

Contributors

linhbui avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.