-
Notifications
You must be signed in to change notification settings - Fork 53
/
recipe071_string_manipulation_examples.robot
39 lines (34 loc) · 1.47 KB
/
recipe071_string_manipulation_examples.robot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
*** Settings ***
Documentation PROBLEM:
... You want to manipulate strings within a Robot Framework test case
... without using low-level Python code or developing a custom library.
... DISCUSSION:
... This recipe demonstrates using keywords from String standard library.
Library String
Test Tags py3.10 py3.11
*** Variables ***
${recipe} Recipe 7.1 String Manipulation Examples
${level} Beginner
${category} Internal Library: String
*** Test Cases ***
Check Lower Case Keywords
[Documentation] Testing lower case string keywords.
${name} Convert To Lower Case Harry Potter
Should Be Equal ${name} harry potter
Should Be Lowercase ${name}
Check Title Case Keywords
[Documentation] Testing title case string keywords.
${name} Convert To Title Case hermione granger
Should Be Equal ${name} Hermione Granger
Should Be Titlecase ${name}
Check Upper Case Keywords
[Documentation] Testing upper case string keywords.
${name} Convert To Upper Case ron weasley
Should Be Equal ${name} RON WEASLEY
Should Be Uppercase ${name}
Check Other String Keywords
[Documentation] Testing other string keywords.
${name} Replace String Nigel Hagrid Nigel Rubeus
Should Be Equal ${name} Rubeus Hagrid
Should Be String ${name}
@{Characters} Split String To Characters ${name}