You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Let's start with a real-life example from our<ahref="https://bitbucket.org/robotframework/webdemo/wiki/Home"target="_blank">web demo project</a>. Here we have a test suite with one test case which tests that login is valid. As you can see, test data syntax is based on<spanclass="italic">keywords</span>.
200
+
Let's start with a real-life example from our<ahref="https://bitbucket.org/robotframework/webdemo"target="_blank">web demo project</a>. Here we have a test suite with one test case which tests that login is valid. As you can see, test data syntax is based on<spanclass="italic">keywords</span>.
201
201
</p>
202
202
<p>
203
203
Keywords are composable, meaning you can define new keywords that use pre-existing keywords. This way, you can abstract details of testing to something that makes immediate sense; for example, we don't need to know what exactly the step<spanclass="teletype">Submit Credentials</span> actually does, unless we want to. Test cases are therefore clear and readable, with just the right level of abstraction to convey the<spanclass="italic">intent</span> of the test, rather than the nuts and bolts.
Executing the test suite file from previous example, we get the meat and bone of Robot Framework: A comprehensive debriefing on what happened in the test execution in two parts: the<spanclass="bold"> Report</span> and the<spanclass="bold">Log</span>.
217
217
</p>
218
-
<p>This Report and Log are based on executing the test suite described in the previous example and is from our<ahref="https://bitbucket.org/robotframework/webdemo/wiki/Home"target="_blank">web demo project</a>.</p>
218
+
<p>This Report and Log are based on executing the test suite described in the previous example and is from our<ahref="https://bitbucket.org/robotframework/webdemo"target="_blank">web demo project</a>.</p>
Keywords can be defined outside of the test suite and be imported as an external resources. This means you can collect generally useful keywords to one place and share them throughout your project, keeping also the testing<ahref="http://en.wikipedia.org/wiki/Don't_repeat_yourself"class="bold"target="_blank">DRY</a>!
244
244
</p>
245
245
<p>
246
-
Below, we have test case testing invalid login in<ahref="https://bitbucket.org/robotframework/webdemo/wiki/Home">our very own web demo</a>. As you can see, we can abstract away a lot of necessary, but ultimately non-expressive nuts and bolts of the testing to the<spanclass="italic">resource file</span>.
246
+
Below, we have test case testing invalid login in<ahref="https://bitbucket.org/robotframework/webdemo">our very own web demo</a>. As you can see, we can abstract away a lot of necessary, but ultimately non-expressive nuts and bolts of the testing to the<spanclass="italic">resource file</span>.
All keywords in Robot Framework come from some library. What if existing libraries do not have what you need? Easy! Just make a library of your own!
363
363
</p>
364
364
<p>
365
-
This example is from our<ahref="https://bitbucket.org/robotframework/robotdemo/wiki/Home"target="_blank">Robot Demo</a>. These keywords the tests use are implemented in plain Python. You can also do libraries in Java.
365
+
This example is from our<ahref="https://bitbucket.org/robotframework/robotdemo"target="_blank">Robot Demo</a>. These keywords the tests use are implemented in plain Python. You can also do libraries in Java.
In this example, each test case adheres to the template set by<spanclass="teletype">Calculate</span> keyword.
418
418
</p>
419
419
<p>
420
-
This example comes from<ahref="https://bitbucket.org/robotframework/robotdemo/wiki/Home"target="_blank">our another demo</a> displaying testing a simple calculator. Check it out!
420
+
This example comes from<ahref="https://bitbucket.org/robotframework/robotdemo"target="_blank">our another demo</a> displaying testing a simple calculator. Check it out!
Want to do<atarget="_blank"href="https://github.com/cucumber/cucumber/wiki/Gherkin">Gherkin-style</a> behaviour-driven test development made famous by<ahref="http://cukes.info/"target="_blank">Cucumber</a>? No problem! That's baked in!
459
459
<p>
460
460
<p>
461
-
Here is another example from our<ahref="https://bitbucket.org/robotframework/robotdemo/wiki/Home"target="_blank">Robot Demo</a> that shows how you can level the expressiveness of Given-When-Then in Robot Framework.
461
+
Here is another example from our<ahref="https://bitbucket.org/robotframework/robotdemo"target="_blank">Robot Demo</a> that shows how you can level the expressiveness of Given-When-Then in Robot Framework.