06 2017 档案
摘要:Name:Add ElementSource:XML <test library>Arguments:[ source | element | index=None | xpath=. ]Adds a child element to the specified element. The eleme
阅读全文
摘要:Name:Get Element TextSource:XML <test library>Arguments:[ source | xpath=. | normalize_whitespace=False ]Returns all text of the element, possibly whi
阅读全文
摘要:Tag names:当仅使用1个tag的时候,xpath匹配具有该标签名称的所有直接子元素。 Paths:通过/符号连接tag名称,例如second/child将匹配父元素second下所有的child子元素。 请注意,如果有多个父元素都有子元素,则xpath将匹配所有这些子元素。 Wildcard
阅读全文
摘要:Name:Get ElementsSource:XML <test library>Arguments:[ source | xpath ]Returns a list of elements in the `source` matching the `xpath`. The `source` ca
阅读全文
摘要:Name:Get ElementSource:XML <test library>Arguments:[ source | xpath=. ]Returns an element in the `source` matching the `xpath`. The `source` can be a
阅读全文
摘要:Name:Element Attribute Should BeSource:XML <test library>Arguments:[ source | name | expected | xpath=. | message=None ]Verifies that the specified at
阅读全文
摘要:Name:Parse XmlSource:XML <test library>Arguments:[ source | keep_clark_notation=False ]Parses the given XML file or string into an element structure.
阅读全文
摘要:文件存放路径:C:\workspace\robotframework\test_rf_api\testdata\XML.xml 文件内容:
阅读全文
摘要:Name:Sort ListSource:Collections <test library>Arguments:[ list_ ]Sorts the given list in place. The strings are sorted alphabetically and the numbers
阅读全文
摘要:Name:Set List ValueSource:Collections <test library>Arguments:[ list_ | index | value ]Sets the value of `list` specified by `index` to the given `val
阅读全文
摘要:Name:Reverse ListSource:Collections <test library>Arguments:[ list_ ]Reverses the given list in place. Note that the given list is changed and nothing
阅读全文
摘要:Name:Remove Values From ListSource:Collections <test library>Arguments:[ list_ | *values ]Removes all occurences of given `values` from `list`. It is
阅读全文
摘要:Name:Remove From ListSource:Collections <test library>Arguments:[ list_ | index ]Removes and returns the value specified with an `index` from `list`.
阅读全文
摘要:Name:Remove DuplicatesSource:Collections <test library>Arguments:[ list_ ]Returns a list without duplicates based on the given `list`. Creates and ret
阅读全文
摘要:Name:Log DictionarySource:Collections <test library>Arguments:[ dictionary | level=INFO ]Logs the size and contents of the `dictionary` using given `l
阅读全文
摘要:Name:Lists Should Be EqualSource:Collections <test library>Arguments:[ list1 | list2 | msg=None | values=True | names=None ]Fails if given lists are u
阅读全文
摘要:Name:List Should Not Contain DuplicatesSource:Collections <test library>Arguments:[ list_ | msg=None ]Fails if any element in the `list` is found from
阅读全文
摘要:Name:Keep In DictionarySource:Collections <test library>Arguments:[ dictionary | *keys ]Keeps the given `keys` in the `dictionary` and removes all oth
阅读全文
摘要:Name:Insert Into ListSource:Collections <test library>Arguments:[ list_ | index | value ]Inserts `value` into `list` to the position specified with `i
阅读全文
摘要:Name:Get Index From ListSource:Collections <test library>Arguments:[ list_ | value | start=0 | end=None ]Returns the index of the first occurrence of
阅读全文
摘要:Name:Get From ListSource:Collections <test library>Arguments:[ list_ | index ]Returns the value specified with an `index` from `list`. The given list
阅读全文
摘要:Name:Count Values In ListSource:Collections <test library>Arguments:[ list_ | value | start=0 | end=None ]Returns the number of occurrences of the giv
阅读全文
摘要:Name:Get Slice From ListSource:Collections <test library>Arguments:[ list_ | start=0 | end=None ]Returns a slice of the given list between `start` and
阅读全文
摘要:Name: Copy DictionarySource:Collections <test library>Arguments:[ dictionary ]Returns a copy of the given dictionary. The given dictionary is never al
阅读全文
摘要:Name:Set To DictionarySource:Collections <test library>Arguments:[ dictionary | *key_value_pairs ]Adds the given `key_value_pairs` to the `dictionary`
阅读全文
摘要:Name:Remove From DictionarySource:Collections <test library>Arguments:[ dictionary | *keys ]Removes the given `keys` from the `dictionary`. If the giv
阅读全文
摘要:Name:Get From DictionarySource:Collections <test library>Arguments:[ dictionary | key ]Returns a value from the given `dictionary` based on the given
阅读全文
摘要:Name:Get Dictionary ValuesSource:Collections <test library>Arguments:[ dictionary ]Returns values of the given dictionary. Values are returned sorted
阅读全文
摘要:Name:Get Dictionary KeysSource:Collections <test library>Arguments:[ dictionary ]Returns `keys` of the given `dictionary`. `Keys` are returned in sort
阅读全文
摘要:Name:Get Dictionary ItemsSource:Collections <test library>Arguments:[ dictionary ]Returns items of the given `dictionary`. Items are returned sorted b
阅读全文
摘要:Name:Dictionary Should Not Contain ValueSource:Collections <test library>Arguments:[ dictionary | value | msg=None ]Fails if `value` is found from `di
阅读全文
摘要:Name:Dictionary Should Not Contain KeySource:Collections <test library>Arguments:[ dictionary | key | msg=None ]Fails if `key` is found from `dictiona
阅读全文
摘要:Name:Dictionary Should Contain ValueSource:Collections <test library>Arguments:[ dictionary | value | msg=None ]Fails if `value` is not found from `di
阅读全文
摘要:Name:Dictionary Should Contain Sub DictionarySource:Collections <test library>Arguments:[ dict1 | dict2 | msg=None | values=True ]Fails unless all ite
阅读全文
摘要:Name:Dictionary Should Contain KeySource:Collections <test library>Arguments:[ dictionary | key | msg=None ]Fails if `key` is not found from `dictiona
阅读全文
摘要:Name:Dictionaries Should Be EqualSource:Collections <test library>Arguments:[ dict1 | dict2 | msg=None | values=True ]Fails if the given dictionaries
阅读全文
摘要:Name:Convert To ListSource:Collections <test library>Arguments:[ item ]Converts the given `item` to a list. Mainly useful for converting tuples and ot
阅读全文
摘要:Name:Create DictionarySource:Collections <test library>Arguments:[ *key_value_pairs ]
阅读全文
摘要:Arguments: [ *lists ]Combines the given `lists` together and returns the result. The given lists are not altered by this keyword. 场景1: 场景2:重复数据不去重进行合并
阅读全文
摘要:Arguments:[ list_ | *values ]Adds `values` to the end of `list`.
阅读全文
摘要:*** Test Cases ***Timestamp ${time} GET TIME ${secs} GET TIME epoch ${year} GET TIME return year ${yyyy} ${mm} ${dd} GET TIME year,month,day @{time} G
阅读全文
摘要:术语说明: 1、Epoch指的是一个特定的时间:1970-01-01 00:00:00 UTC。 2、国际标准化组织的国际标准ISO 8601是日期和时间的表示方法,格式是 'YYYY-MM-DD hh:mm:ss.mil'。 3、UTC time(称为协调世界时或者世界统一时间):这套时间系统被应
阅读全文
摘要:ls |wc 是统计你这个目录下的文件数目。ls |wc -l是输出第一个结果即31即文件的数目。
阅读全文