diff --git a/sources/src/assets/css/pygments.css b/sources/src/assets/css/pygments.css
index c116e0ff5..d5d0ec707 100644
--- a/sources/src/assets/css/pygments.css
+++ b/sources/src/assets/css/pygments.css
@@ -1,77 +1,446 @@
.highlight {
- font-family: "OCRA";
- line-height: 1rem;
- font-size: 0.8rem;
+ font-family: "Courier";
+ line-height: 1.1rem;
+ font-size: 0.9rem;
+ padding: 15px;
}
/* Generated with: pygmentize -f html -S native -a .highlight > pygments.css */
-.highlight .hll { background-color: #404040 }
-.highlight { background: #202020; color: #d0d0d0 }
-.highlight .c { color: #999999; font-style: italic } /* Comment */
-.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
-.highlight .g { color: #d0d0d0 } /* Generic */
-.highlight .k { color: #6ab825; font-weight: bold } /* Keyword */
-.highlight .l { color: #d0d0d0 } /* Literal */
-.highlight .n { color: #d0d0d0 } /* Name */
-.highlight .o { color: #d0d0d0 } /* Operator */
-.highlight .x { color: #d0d0d0 } /* Other */
-.highlight .p { color: #d0d0d0 } /* Punctuation */
-.highlight .cm { color: #999999; font-style: italic } /* Comment.Multiline */
-.highlight .cp { color: #cd2828; font-weight: bold } /* Comment.Preproc */
-.highlight .c1 { color: #999999; font-style: italic } /* Comment.Single */
-.highlight .cs { color: #e50808; font-weight: bold; background-color: #520000 } /* Comment.Special */
-.highlight .gd { color: #d22323 } /* Generic.Deleted */
-.highlight .ge { color: #d0d0d0; font-style: italic } /* Generic.Emph */
-.highlight .gr { color: #d22323 } /* Generic.Error */
-.highlight .gh { color: #ffffff; font-weight: bold } /* Generic.Heading */
-.highlight .gi { color: #589819 } /* Generic.Inserted */
-.highlight .go { color: #cccccc } /* Generic.Output */
-.highlight .gp { color: #aaaaaa } /* Generic.Prompt */
-.highlight .gs { color: #d0d0d0; font-weight: bold } /* Generic.Strong */
-.highlight .gu { color: #ffffff; text-decoration: underline } /* Generic.Subheading */
-.highlight .gt { color: #d22323 } /* Generic.Traceback */
-.highlight .kc { color: #6ab825; font-weight: bold } /* Keyword.Constant */
-.highlight .kd { color: #6ab825; font-weight: bold } /* Keyword.Declaration */
-.highlight .kn { color: #6ab825; font-weight: bold } /* Keyword.Namespace */
-.highlight .kp { color: #6ab825 } /* Keyword.Pseudo */
-.highlight .kr { color: #6ab825; font-weight: bold } /* Keyword.Reserved */
-.highlight .kt { color: #6ab825; font-weight: bold } /* Keyword.Type */
-.highlight .ld { color: #d0d0d0 } /* Literal.Date */
-.highlight .m { color: #3677a9 } /* Literal.Number */
-.highlight .s { color: #ed9d13 } /* Literal.String */
-.highlight .na { color: #bbbbbb } /* Name.Attribute */
-.highlight .nb { color: #24909d } /* Name.Builtin */
-.highlight .nc { color: #447fcf; text-decoration: underline } /* Name.Class */
-.highlight .no { color: #40ffff } /* Name.Constant */
-.highlight .nd { color: #ffa500 } /* Name.Decorator */
-.highlight .ni { color: #d0d0d0 } /* Name.Entity */
-.highlight .ne { color: #bbbbbb } /* Name.Exception */
-.highlight .nf { color: #447fcf } /* Name.Function */
-.highlight .nl { color: #d0d0d0 } /* Name.Label */
-.highlight .nn { color: #447fcf; text-decoration: underline } /* Name.Namespace */
-.highlight .nx { color: #d0d0d0 } /* Name.Other */
-.highlight .py { color: #d0d0d0 } /* Name.Property */
-.highlight .nt { color: #6ab825; font-weight: bold } /* Name.Tag */
-.highlight .nv { color: #40ffff } /* Name.Variable */
-.highlight .ow { color: #6ab825; font-weight: bold } /* Operator.Word */
-.highlight .w { color: #666666 } /* Text.Whitespace */
-.highlight .mf { color: #3677a9 } /* Literal.Number.Float */
-.highlight .mh { color: #3677a9 } /* Literal.Number.Hex */
-.highlight .mi { color: #3677a9 } /* Literal.Number.Integer */
-.highlight .mo { color: #3677a9 } /* Literal.Number.Oct */
-.highlight .sb { color: #ed9d13 } /* Literal.String.Backtick */
-.highlight .sc { color: #ed9d13 } /* Literal.String.Char */
-.highlight .sd { color: #ed9d13 } /* Literal.String.Doc */
-.highlight .s2 { color: #ed9d13 } /* Literal.String.Double */
-.highlight .se { color: #ed9d13 } /* Literal.String.Escape */
-.highlight .sh { color: #ed9d13 } /* Literal.String.Heredoc */
-.highlight .si { color: #ed9d13 } /* Literal.String.Interpol */
-.highlight .sx { color: #ffa500 } /* Literal.String.Other */
-.highlight .sr { color: #ed9d13 } /* Literal.String.Regex */
-.highlight .s1 { color: #ed9d13 } /* Literal.String.Single */
-.highlight .ss { color: #ed9d13 } /* Literal.String.Symbol */
-.highlight .bp { color: #24909d } /* Name.Builtin.Pseudo */
-.highlight .vc { color: #40ffff } /* Name.Variable.Class */
-.highlight .vg { color: #40ffff } /* Name.Variable.Global */
-.highlight .vi { color: #40ffff } /* Name.Variable.Instance */
-.highlight .il { color: #3677a9 } /* Literal.Number.Integer.Long */
\ No newline at end of file
+
+.highlight .hll {
+ background-color: #404040
+}
+
+.highlight {
+ background: #202020;
+ color: #d0d0d0
+}
+
+.highlight .c {
+ color: #999999;
+ font-style: italic
+}
+
+/* Comment */
+
+.highlight .err {
+ color: #a61717;
+ background-color: #e3d2d2
+}
+
+/* Error */
+
+.highlight .g {
+ color: #d0d0d0
+}
+
+/* Generic */
+
+.highlight .k {
+ color: #6ab825;
+ font-weight: bold
+}
+
+/* Keyword */
+
+.highlight .l {
+ color: #d0d0d0
+}
+
+/* Literal */
+
+.highlight .n {
+ color: #d0d0d0
+}
+
+/* Name */
+
+.highlight .o {
+ color: #d0d0d0
+}
+
+/* Operator */
+
+.highlight .x {
+ color: #d0d0d0
+}
+
+/* Other */
+
+.highlight .p {
+ color: #d0d0d0
+}
+
+/* Punctuation */
+
+.highlight .cm {
+ color: #999999;
+ font-style: italic
+}
+
+/* Comment.Multiline */
+
+.highlight .cp {
+ color: #cd2828;
+ font-weight: bold
+}
+
+/* Comment.Preproc */
+
+.highlight .c1 {
+ color: #999999;
+ font-style: italic
+}
+
+/* Comment.Single */
+
+.highlight .cs {
+ color: #e50808;
+ font-weight: bold;
+ background-color: #520000
+}
+
+/* Comment.Special */
+
+.highlight .gd {
+ color: #d22323
+}
+
+/* Generic.Deleted */
+
+.highlight .ge {
+ color: #d0d0d0;
+ font-style: italic
+}
+
+/* Generic.Emph */
+
+.highlight .gr {
+ color: #d22323
+}
+
+/* Generic.Error */
+
+.highlight .gh {
+ color: #ffffff;
+ font-weight: bold
+}
+
+/* Generic.Heading */
+
+.highlight .gi {
+ color: #589819
+}
+
+/* Generic.Inserted */
+
+.highlight .go {
+ color: #cccccc
+}
+
+/* Generic.Output */
+
+.highlight .gp {
+ color: #aaaaaa
+}
+
+/* Generic.Prompt */
+
+.highlight .gs {
+ color: #d0d0d0;
+ font-weight: bold
+}
+
+/* Generic.Strong */
+
+.highlight .gu {
+ color: #ffffff;
+ text-decoration: underline
+}
+
+/* Generic.Subheading */
+
+.highlight .gt {
+ color: #d22323
+}
+
+/* Generic.Traceback */
+
+.highlight .kc {
+ color: #6ab825;
+ font-weight: bold
+}
+
+/* Keyword.Constant */
+
+.highlight .kd {
+ color: #6ab825;
+ font-weight: bold
+}
+
+/* Keyword.Declaration */
+
+.highlight .kn {
+ color: #6ab825;
+ font-weight: bold
+}
+
+/* Keyword.Namespace */
+
+.highlight .kp {
+ color: #6ab825
+}
+
+/* Keyword.Pseudo */
+
+.highlight .kr {
+ color: #6ab825;
+ font-weight: bold
+}
+
+/* Keyword.Reserved */
+
+.highlight .kt {
+ color: #6ab825;
+ font-weight: bold
+}
+
+/* Keyword.Type */
+
+.highlight .ld {
+ color: #d0d0d0
+}
+
+/* Literal.Date */
+
+.highlight .m {
+ color: #3677a9
+}
+
+/* Literal.Number */
+
+.highlight .s {
+ color: #ed9d13
+}
+
+/* Literal.String */
+
+.highlight .na {
+ color: #bbbbbb
+}
+
+/* Name.Attribute */
+
+.highlight .nb {
+ color: #24909d
+}
+
+/* Name.Builtin */
+
+.highlight .nc {
+ color: #447fcf;
+ text-decoration: underline
+}
+
+/* Name.Class */
+
+.highlight .no {
+ color: #40ffff
+}
+
+/* Name.Constant */
+
+.highlight .nd {
+ color: #ffa500
+}
+
+/* Name.Decorator */
+
+.highlight .ni {
+ color: #d0d0d0
+}
+
+/* Name.Entity */
+
+.highlight .ne {
+ color: #bbbbbb
+}
+
+/* Name.Exception */
+
+.highlight .nf {
+ color: #447fcf
+}
+
+/* Name.Function */
+
+.highlight .nl {
+ color: #d0d0d0
+}
+
+/* Name.Label */
+
+.highlight .nn {
+ color: #447fcf;
+ text-decoration: underline
+}
+
+/* Name.Namespace */
+
+.highlight .nx {
+ color: #d0d0d0
+}
+
+/* Name.Other */
+
+.highlight .py {
+ color: #d0d0d0
+}
+
+/* Name.Property */
+
+.highlight .nt {
+ color: #6ab825;
+ font-weight: bold
+}
+
+/* Name.Tag */
+
+.highlight .nv {
+ color: #40ffff
+}
+
+/* Name.Variable */
+
+.highlight .ow {
+ color: #6ab825;
+ font-weight: bold
+}
+
+/* Operator.Word */
+
+.highlight .w {
+ color: #666666
+}
+
+/* Text.Whitespace */
+
+.highlight .mf {
+ color: #3677a9
+}
+
+/* Literal.Number.Float */
+
+.highlight .mh {
+ color: #3677a9
+}
+
+/* Literal.Number.Hex */
+
+.highlight .mi {
+ color: #3677a9
+}
+
+/* Literal.Number.Integer */
+
+.highlight .mo {
+ color: #3677a9
+}
+
+/* Literal.Number.Oct */
+
+.highlight .sb {
+ color: #ed9d13
+}
+
+/* Literal.String.Backtick */
+
+.highlight .sc {
+ color: #ed9d13
+}
+
+/* Literal.String.Char */
+
+.highlight .sd {
+ color: #ed9d13
+}
+
+/* Literal.String.Doc */
+
+.highlight .s2 {
+ color: #ed9d13
+}
+
+/* Literal.String.Double */
+
+.highlight .se {
+ color: #ed9d13
+}
+
+/* Literal.String.Escape */
+
+.highlight .sh {
+ color: #ed9d13
+}
+
+/* Literal.String.Heredoc */
+
+.highlight .si {
+ color: #ed9d13
+}
+
+/* Literal.String.Interpol */
+
+.highlight .sx {
+ color: #ffa500
+}
+
+/* Literal.String.Other */
+
+.highlight .sr {
+ color: #ed9d13
+}
+
+/* Literal.String.Regex */
+
+.highlight .s1 {
+ color: #ed9d13
+}
+
+/* Literal.String.Single */
+
+.highlight .ss {
+ color: #ed9d13
+}
+
+/* Literal.String.Symbol */
+
+.highlight .bp {
+ color: #24909d
+}
+
+/* Name.Builtin.Pseudo */
+
+.highlight .vc {
+ color: #40ffff
+}
+
+/* Name.Variable.Class */
+
+.highlight .vg {
+ color: #40ffff
+}
+
+/* Name.Variable.Global */
+
+.highlight .vi {
+ color: #40ffff
+}
+
+/* Name.Variable.Instance */
+
+.highlight .il {
+ color: #3677a9
+}
+
+/* Literal.Number.Integer.Long */
diff --git a/sources/src/components/pages/Examples.vue b/sources/src/components/pages/Examples.vue
index 003f49565..c4ba377c7 100644
--- a/sources/src/components/pages/Examples.vue
+++ b/sources/src/components/pages/Examples.vue
@@ -9,29 +9,22 @@
-
- *** Settings ***
-
- Documentation
-
- A test suite with a single test for valid login.
-
- ...
- ...This test has a workflow that is created using keywords in
- ...the imported resource file.
- Resource
- resource.txt
- *** Test Cases ***
-
- Valid Login
-
- Open Browser To Login Page
- Input Username demo
- Input Password mode
- Submit Credentials
- Welcome Page Should Be Open
- [Teardown] Close Browser
-
+ *** Settings ***
+Documentation A test suite with a single test for valid login.
+...
+... This test has a workflow that is created using keywords in
+... the imported resource file.
+Resource resource.txt
+
+*** Test Cases ***
+Valid Login
+ Open Browser To Login Page
+ Input Username demo
+ Input Password mode
+ Submit Credentials
+ Welcome Page Should Be Open
+ [Teardown] Close Browser
+
@@ -53,170 +46,170 @@
-
-
*** Settings ***
- Suite Setup Open Browser To Login Page
- Suite Teardown Close Browser
- Test Setup Go To Login Page
- Test Template Login With Invalid Credentials Should Fail
- Resource resource.txt
-
- *** Test Cases *** User Name Password
- Invalid Username invalid ${VALID PASSWORD}
- Invalid Password ${VALID USER} invalid
- Invalid Username And Password invalid whatever
- Empty Username ${EMPTY} ${VALID PASSWORD}
- Empty Password ${VALID USER} ${EMPTY}
- Empty Username And Password ${EMPTY} ${EMPTY}
-
- *** Keywords ***
- Login With Invalid Credentials Should Fail
- [Arguments] ${username} ${password}
- Input Username ${username}
- Input Password ${password}
- Submit Credentials
- Login Should Have Failed
-
- Login Should Have Failed
- Location Should Be ${ERROR URL}
- Title Should Be Error Page
-
+
+
*** Settings ***
+Suite Setup Open Browser To Login Page
+Suite Teardown Close Browser
+Test Setup Go To Login Page
+Test Template Login With Invalid Credentials Should Fail
+Resource resource.txt
+
+*** Test Cases *** User Name Password
+Invalid Username invalid ${VALID PASSWORD}
+Invalid Password ${VALID USER} invalid
+Invalid Username And Password invalid whatever
+Empty Username ${EMPTY} ${VALID PASSWORD}
+Empty Password ${VALID USER} ${EMPTY}
+Empty Username And Password ${EMPTY} ${EMPTY}
+
+*** Keywords ***
+Login With Invalid Credentials Should Fail
+ [Arguments] ${username} ${password}
+ Input Username ${username}
+ Input Password ${password}
+ Submit Credentials
+ Login Should Have Failed
+
+Login Should Have Failed
+ Location Should Be ${ERROR URL}
+ Title Should Be Error Page
+
*** Settings ***
- Library Selenium2Library
-
- *** Variables ***
- ${SERVER} localhost:7272
- ${BROWSER} Firefox
- ${DELAY} 0
- ${VALID USER} demo
- ${VALID PASSWORD} mode
- ${LOGIN URL} http://${SERVER}/
- ${WELCOME URL} http://${SERVER}/welcome.html
- ${ERROR URL} http://${SERVER}/error.html
-
- *** Keywords ***
- Open Browser To Login Page
- Open Browser ${LOGIN URL} ${BROWSER}
- Maximize Browser Window
- Set Selenium Speed ${DELAY}
- Login Page Should Be Open
-
- Login Page Should Be Open
- Title Should Be Login Page
-
- Go To Login Page
- Go To ${LOGIN URL}
- Login Page Should Be Open
-
- Input Username
- [Arguments] ${username}
- Input Text username_field ${username}
-
- Input Password
- [Arguments] ${password}
- Input Text password_field ${password}
-
- Submit Credentials
- Click Button login_button
-
- Welcome Page Should Be Open
- Location Should Be ${WELCOME URL}
- Title Should Be Welcome Page
-
+
Library Selenium2Library
+
+
*** Variables ***
+
${SERVER} localhost:7272
+
${BROWSER} Firefox
+
${DELAY} 0
+
${VALID USER} demo
+
${VALID PASSWORD} mode
+
${LOGIN URL} http://${SERVER}/
+
${WELCOME URL} http://${SERVER}/welcome.html
+
${ERROR URL} http://${SERVER}/error.html
+
+
*** Keywords ***
+
Open Browser To Login Page
+
Open Browser ${LOGIN URL} ${BROWSER}
+
Maximize Browser Window
+
Set Selenium Speed ${DELAY}
+
Login Page Should Be Open
+
+
Login Page Should Be Open
+
Title Should Be Login Page
+
+
Go To Login Page
+
Go To ${LOGIN URL}
+
Login Page Should Be Open
+
+
Input Username
+
[Arguments] ${username}
+
Input Text username_field ${username}
+
+
Input Password
+
[Arguments] ${password}
+
Input Text password_field ${password}
+
+
Submit Credentials
+
Click Button login_button
+
+
Welcome Page Should Be Open
+
Location Should Be ${WELCOME URL}
+
Title Should Be Welcome Page
+
from calculator import Calculator, CalculationError
- class CalculatorLibrary(object):
- def __init__(self):
- self._calc = Calculator()
- self._result = ''
+class CalculatorLibrary(object):
+ def __init__(self):
+ self._calc = Calculator()
+ self._result = ''
- def push_button(self, button):
- self._result = self._calc.push(button)
+ def push_button(self, button):
+ self._result = self._calc.push(button)
- def push_buttons(self, buttons):
- for button in buttons.replace(' ',''):
+ def push_buttons(self, buttons):
+ for button in buttons.replace(' ',''):
self.push_button(button)
- def result_should_be(self, expected):
- if self._result != expected:
+ def result_should_be(self, expected):
+ if self._result != expected:
raise AssertionError('%s != %s' % (self._result, expected))
- def should_fail(self, expression):
- try:
+ def should_fail(self, expression):
+ try:
self.push_buttons(expression)
- except CalculationError, err:
+ except CalculationError, err:
return str(err)
- else:
+ else:
raise AssertionError("'%s' should have failed" % expression)
-
+
*** Settings ***
- Test Template Calculate
- Library CalculatorLibrary
-
- *** Test Cases *** Expression Expected
- Additions 12 + 2 + 2 16
- 2 + -3 -1
-
- Substractions 12 - 2 - 2 8
- 2 - -3 5
-
- Multiplication 12 * 2 * 2 48
- 2 * -3 -6
-
- Division 12 / 2 / 2 3
- 2 / -3 -1
-
- Calculation error [Template] Calculation should fail
- kekkonen Invalid button 'k'.
- ${EMPTY} Invalid expression.
- 1 / 0 Division by zero.
-
- *** Keywords ***
- Calculate
- [Arguments] ${expression} ${expected}
- Push buttons C${expression}=
- Result should be ${expected}
-
- Calculation should fail
- [Arguments] ${expression} ${expected}
- ${error} = Should fail C${expression}=
- Should be equal ${expected} ${error}
-
+Test Template Calculate
+Library CalculatorLibrary
+
+*** Test Cases *** Expression Expected
+Additions 12 + 2 + 2 16
+ 2 + -3 -1
+
+Substractions 12 - 2 - 2 8
+ 2 - -3 5
+
+Multiplication 12 * 2 * 2 48
+ 2 * -3 -6
+
+Division 12 / 2 / 2 3
+ 2 / -3 -1
+
+Calculation error [Template] Calculation should fail
+ kekkonen Invalid button 'k'.
+ ${EMPTY} Invalid expression.
+ 1 / 0 Division by zero.
+
+*** Keywords ***
+Calculate
+ [Arguments] ${expression} ${expected}
+ Push buttons C${expression}=
+ Result should be ${expected}
+
+Calculation should fail
+ [Arguments] ${expression} ${expected}
+ ${error} = Should fail C${expression}=
+ Should be equal ${expected} ${error}
+
*** Settings ***
- Library CalculatorLibrary
+Library CalculatorLibrary
- *** Test Cases ***
- Addition
- Given calculator has been cleared
- When user types "1 + 1"
- and user pushes equals
- Then result is "2"
+*** Test Cases ***
+Addition
+ Given calculator has been cleared
+ When user types "1 + 1"
+ and user pushes equals
+ Then result is "2"
- *** Keywords ***
- Calculator has been cleared
- Push button C
+*** Keywords ***
+Calculator has been cleared
+ Push button C
- User types "${expression}"
- Push buttons ${expression}
+User types "${expression}"
+ Push buttons ${expression}
- User pushes equals
- Push button =
+User pushes equals
+ Push button =
- Result is "${result}"
- Result should be ${result}
-
+Result is "${result}"
+ Result should be ${result}
+