MediaWiki API result

This is the HTML representation of the JSON format. HTML is good for debugging, but is unsuitable for application use.

Specify the format parameter to change the output format. To see the non-HTML representation of the JSON format, set format=json.

See the complete documentation, or the API help for more information.

{
    "batchcomplete": "",
    "continue": {
        "gapcontinue": "SSL_Certificate_Update",
        "continue": "gapcontinue||"
    },
    "query": {
        "pages": {
            "3": {
                "pageid": 3,
                "ns": 0,
                "title": "Ruby",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "Ruby is a dynamic, reflective, object-oriented, general-purpose programming language. It was designed and developed in the mid-1990s by Yukihiro \"Matz\" Matsumoto in Japan. According to its creator, Ruby was influenced by Perl, Smalltalk, Eiffel, Ada, and Lisp.\n\n'''Source'''\n* https://en.wikipedia.org/wiki/Ruby_(programming_language)"
                    }
                ]
            },
            "19": {
                "pageid": 19,
                "ns": 0,
                "title": "Running cucumber projects",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "<div style=\"display: block; float:right; background-color: #FDFDFD; border: 1px #AFAFAF solid; padding: 10px;\">\n<categorytree mode=all depth=1>Web_Test_Automation_Tutorial</categorytree>\n</div>\n\n<h2>First things first</h2>\n<ul>\n    <li>In your project, open \\features\\calculator.feature. You should recognize the file from the [[Writing_gherkin_test_cases_in_cucumber|previous part]] of this\n        tutorial.\n    </li>\n</ul>\n<ul>\n    <li>Open CMD and go to the project folder</li>\n    <source>cd C:\\Ruby\\projects\\<your project name>\\</source>\n    <li>With the TAB key, the console will try to finish what you're writing.</li> \n    <li>Try the following to get to your project:</li>\n<source>\ncd /\ncd C:\\Ru :tab: \\pr :tab: \\<first 2 letters from the name of your project> :tab: :enter:\n</source>\n</ul>\n\n<h2>Running the calculator</h2>\n<p>In CMD you have opened, write the following <code>bundle exec cucumber -t @addition</code> and press \"Enter\"</p>\n\n<p>''It will show an empty line for a moment, quickly open and close a browser and you will see the following output:''</p>\n[[File:cmd-cucumber-output.png]]\n<p>So, what happened?</p> \n<p>By writing <code>bundle exec cucumber -t @addition</code> you said: \"Hey Ruby, I want to use Cucumber to look\n    at this folder I am in now. Also, I want only to run things that contain the tag @addition\". At this point cucumber\n    starts\n    reading the project, looking for the feature files and filtering out the Features, Scenarios or Scenario Outlines\n    and then run them.</p>\n<p>In this case you will first see some settings of this run, we will talk about this later. After this it will show\n    the Feature that contains @addition or that has a scenario with @addition. Then it will show the scenario it is\n    about to run.</p>\n<p>After all scenarios related to @addition have run, it will show a summary of how many steps and scenario's\n    succeeded, failed and were undefined.</p>\n<p>In this case it will show all steps as \"undefined\". If you think about it, it's quite logical. Cucumber doesn't\n    speak English, so how can it know what we mean by these lines of text? How to make Cucumber understand these steps\n    will be discussed in the next chapter.</p>\n\n<h2>More tag filtering</h2>\n<p>Go to CMD and try out a few more commands. Before entering these commands, look at the calculator.feature\n    file and try to guess what scenarios will run.</p>\n<source>\n    bundle exec cucumber -t @subtraction\n    bundle exec cucumber -t @calculator\n    bundle exec cucumber -t @calculator -t ~@addition -t ~@add\n    bundle exec cucumber -t @calculator -t ~@subtraction -t ~@add\n    bundle exec cucumber -t @calculator -t @both\n</source>\n<p><b>Pro tip</b>: When in CMD, use the arrow up key, so show your last entered command.</p>\n<p>You might have noticed, that when running a Scenario Outline, it will show the steps for every time it's running a\n    new row. In the end, it will also show 4 undefined steps for every outline that it went through.</p>\n<p>If you're wondering what will happen with different tags, feel free to play around a bit.</p>\n\n<h2>Other commands</h2>\n<p>Cucumber has many more commands to use when running scripts. You can see them all by writing the following:</p>\n<code>cucumber --help</code>\n<p>That is double minus sign. This will give you a list of all the cucumber commands. Lets go trough the most commonly\n    used.</p>\n<p>Examples:</p>\n<ul>\n    <li><code>bundle exec cucumber -t @calculator -f html >> output.html</code></li>\n    <ul>\n        <li>Will create a file in your project folder named output.html' with the results of your test-run. &larr; try\n            this yourself\n        </li>\n    </ul>\n    <li><code>bundle exec cucumber -t @calculator -f usage >> usage.txt</code></li>\n    </li>\n    <ul>\n        <li>Will show all the step definitions in your project, ordered by most time spent to least time spent.</li>\n    </ul>\n</ul>"
                    }
                ]
            }
        }
    }
}