robot.htmldata包
包编写HTML格式的输出文件。
这个包被认为是稳定的但不是公共API的一部分。
robot.htmldata.htmlfilewriter module
-
class
robot.htmldata.htmlfilewriter.
HtmlFileWriter
(output, model_writer) -
语法:
object
-
write
(template)
-
-
class
robot.htmldata.htmlfilewriter.
ModelWriter
-
语法:
robot.htmldata.htmlfilewriter._Writer
-
handles
(line)
-
write
(line)
-
-
class
robot.htmldata.htmlfilewriter.
LineWriter
(output) -
语法:
robot.htmldata.htmlfilewriter._Writer
-
handles
(line)
-
write
(line)
-
-
class
robot.htmldata.htmlfilewriter.
GeneratorWriter
(html_writer) -
语法:
robot.htmldata.htmlfilewriter._Writer
-
write
(line)
-
handles
(line)
-
-
class
robot.htmldata.htmlfilewriter.
JsFileWriter
(html_writer, base_dir) -
语法:
robot.htmldata.htmlfilewriter._InliningWriter
-
write
(line)
-
handles
(line)
-
-
class
robot.htmldata.htmlfilewriter.
CssFileWriter
(html_writer, base_dir) -
语法:
robot.htmldata.htmlfilewriter._InliningWriter
-
write
(line)
-
handles
(line)
-
robot.htmldata.jartemplate module
-
class
robot.htmldata.jartemplate.
HtmlTemplate
(filename) -
语法:
object
robot.htmldata.jsonwriter module
-
class
robot.htmldata.jsonwriter.
JsonWriter
(output, separator='') -
语法:
object
-
write_json
(prefix, data, postfix=';\n', mapping=None, separator=True)
-
write
(string, postfix=';\n', separator=True)
-
-
class
robot.htmldata.jsonwriter.
JsonDumper
(output) -
语法:
object
-
dump
(data, mapping=None)
-
write
(data)
-
-
class
robot.htmldata.jsonwriter.
StringDumper
(jsondumper) -
语法:
robot.htmldata.jsonwriter._Dumper
-
dump
(data, mapping)
-
handles
(data, mapping)
-
-
class
robot.htmldata.jsonwriter.
IntegerDumper
(jsondumper) -
语法:
robot.htmldata.jsonwriter._Dumper
-
dump
(data, mapping)
-
handles
(data, mapping)
-
-
class
robot.htmldata.jsonwriter.
DictDumper
(jsondumper) -
语法:
robot.htmldata.jsonwriter._Dumper
-
dump
(data, mapping)
-
handles
(data, mapping)
-
-
class
robot.htmldata.jsonwriter.
TupleListDumper
(jsondumper) -
语法:
robot.htmldata.jsonwriter._Dumper
-
dump
(data, mapping)
-
handles
(data, mapping)
-
-
class
robot.htmldata.jsonwriter.
MappingDumper
(jsondumper) -
语法:
robot.htmldata.jsonwriter._Dumper
-
handles
(data, mapping)
-
dump
(data, mapping)
-
-
class
robot.htmldata.jsonwriter.
NoneDumper
(jsondumper) -
语法:
robot.htmldata.jsonwriter._Dumper
-
handles
(data, mapping)
-
dump
(data, mapping)
-
robot.htmldata.normaltemplate module
-
class
robot.htmldata.normaltemplate.
HtmlTemplate
(filename) -
语法:
object