>>> print 'Subject uniq: %s ' % (Lipsum().getSubject(uniq=True))
Subject uniq: F26v3y fuscus variegatus dolicho caulos cephalus
>>> print 'Sentence: %s ' % (Lipsum().getSentence())
Sentence: Argentatus arvensis diplo familiaris tetra trich ; vulgaris montanus folius tetra so echinus, trich pteron phyton so brachy officinalis.
>>> print 'Paragraph: %s ' % (Lipsum().getParagraph())
Paragraph: Sit pteron, tetra dermis viridis cyanos. Tetra novaehollandiae cyanos indicus major ortho archaeos montanus. Viridis cephalus, niger, it occidentalis volans delorum sativus gaster arctos phyllo dermis archaeos. Archaeos montanus erythro mauro minimus biscortborealis occidentalis morphos biscortborealis silvestris punctatus variegatus ! phyton mauro hexa.
>>> print 'Message: %s ' % (Lipsum().getMessage())
Message: Familiaris fulvus flora xanthos tomentosus lutea lineatus ?, dolicho campus maculatus ad platy gaster punctatus. So pachys rufus tris, trich montanus so variegatus cristatus orientalis diplo minimus. Petra lateralis bradus, chilensis unus officinalis striatus ad. Xanthos dolicho arvensis ennea tinctorius phyton, sit arctos mauro.
Dermis zygos, ventrus oeos glycis dulcis chloreus verrucosus lineatus, pteron sinensis officinalis cyanos. Cephalus occidentalis verrucosus echinus ; lateralis protos tinctorius punctatus parvus volans. Pteron palustris gaster ad tomentosus platy arctos rhytis pedis indicus mono. Chilensis phyton, ; hortensis fuscus aquam.
Variegatus deca fuscus petra rubra biscortborealis familiaris sativus leucus xanthos phyton argentatus novaehollandiae brachy. Mauro rufus saurus deca oeos thrix rostra archaeos, ortho rufus phyllo cristatus campus rostra oleum xanthos chilensis. Archaeos protos tinctorius gaster arctos niger niger variegatus thrix, mauro arctos verrucosus ennea delorum. Pedis melanus mauro occidentalis pratensis chilensis arctos gaster noveboracensis, rufus ennea minimus saurus dermis fulvus octa.
>>> print 'Phone number: %s ' % Lipsum().getPhoneNumber()
Phone number: 07 20 25 56 06
>>> print 'Phone number fr short: %s ' % Lipsum().getPhoneNumber(
... lang="fr", format="short")
Phone number fr short: 0787117995
>>> print 'Phone number fr medium: %s ' % Lipsum().getPhoneNumber(
... lang="fr", format="medium")
Phone number fr medium: 07 88 31 30 06
>>> print 'Phone number fr long: %s ' % Lipsum().getPhoneNumber(
... lang="fr", format="long")
Phone number fr long: +33 (0)7 41 08 36 56
>>> print 'Phone number en_US short: %s ' % Lipsum().getPhoneNumber(
... lang="en_US", format="short")
Phone number en_US short: 863-3655
>>> print 'Phone number en_US medium: %s ' % Lipsum().getPhoneNumber(
... lang="en_US", format="medium")
Phone number en_US medium: (327) 129-2863
>>> print 'Phone number en_US long: %s ' % Lipsum().getPhoneNumber(
... lang="en_US", format="long")
Phone number en_US long: +00 1 (283) 158-7134
>>> print 'Address default: %s' % Lipsum().getAddress()
Address default: 85 place Brevis
99612 Trich
9、向报告添加信息
在运行时,工作台可以使用setUpBench钩子和addMetadata方法向元数据添加元数据:
def setUpBench(self):
ret = self.get(self.server_url + "/getVersion",
description="Get the server version")
self.addMetadata(**{'Application version': ret.getBody()})
在运行时从命令行使用--label选项的bench runner。
在使用名为funkload.metadata的文件,使用key:value列表。目前此趋势报告仅用于添加图表标签和工作台说明。该文件必须放在报告目录下:
label: label used by trend report
build: 666
builtOn: hostname
Text taken as description `using ReST power `__
Can be multine text.