-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
*** Settings *** | ||
Library XML | ||
*** Test Cases *** | ||
Check Request | ||
${root} Parse Xml source=${CURDIR}/sample_request.xml | ||
Element Text Should Be source=${root} xpath=.//intA expected=5 | ||
${text} Get Element Text source=${root} xpath=.//intA | ||
Should Be Equal As Numbers ${text} 5 | ||
Modify intA Element in Request | ||
${root} Parse Xml source=${CURDIR}/sample_request.xml | ||
# What is the keyword to modify the text in an element? | ||
Add an intC Element to Request | ||
${root} Parse Xml source=${CURDIR}/sample_request.xml | ||
Add Element source=${root} xpath=.//Multiply element=<intB>5</intB> | ||
Save Xml ${root} path=updated_sample.xml | ||
Remove an Element from Request | ||
${root} Parse Xml source=${CURDIR}/sample_request.xml | ||
# What is the keyword to remove an element? |