##lc2-report
####persistent storage
all report info stores in report.zip. The directory structure of report.zip is as follows
-- report.zip
|- report.json
|- log1
|- log2
|- ...
|- snapshot(保存开始运行时的代码资源快照)
{
start: xxx,
data: [
log1,
log2,
...
]
}
{"type": "start","data": {...},"time": 1477492497167}
{"type": "jumpto","data": {"url": "https://www.baidu.com/","line": 7},"time": 1477492498273},
...
{"type": "end","data": {"time": 1477492499401},"time": 1477492499401},
data structure
{
meta: {
title: xxx,
start: xxx,
pass: xxx,
fail: xxx,
},
caseList: [
{
root: xxx,
path: xxx,
code: xxx,
failIndex: xxx,
duration: xxx,
logList: [
{
type: 'start',
time: xxx
},
{
type: 'lc2Code',
time: xxx,
data: {
name: xxx,
path: xxx,
}
},
{
type: 'runtimeJS',
time: xxx,
data: {
line: xxx,
message: xxx
}
},
{
type: 'runtimeDriver',
time: xxx,
data: {
action: xxx,
line: xxx,
success: xxx,
selector: xxx,
duration: xxx,
param: xxx
}
},
{
type: 'runtimeLC2',
time: xxx,
data: {
action: xxx,
line: xxx,
data: {
}
}
},
{
type: 'capture',
time: xxx,
data: {
path: xxx
}
},
{
type: 'end',
time: xxx
}
]
}
]
}