lc2-report
persistent storage
all report info stores in report.zip. The directory structure of report.zip is as follows
+- report.zip
|- report.log
|- meta.json
|+ screenshot // All capture
|- capture1.png
|- capture2.png
`- ...
|+ sources // All *.lc2 with directory
| example.lc2
`- <pathname> // relative to workspace
{"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,
tmpDir: 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
}
]
}
]
}