70 lines
1.7 KiB
JSON
70 lines
1.7 KiB
JSON
{
|
|
"id": "82bc8d6a-36eb-4d2d-8801-ef714fb1e55a",
|
|
"snapshot": "chrome",
|
|
"instruction": "On April 21, look up a flight from Mumbai to Stockholm.",
|
|
"source": "test_task_1",
|
|
"config": [
|
|
{
|
|
"type": "launch",
|
|
"parameters": {
|
|
"command": [
|
|
"google-chrome",
|
|
"--remote-debugging-port=1337"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "launch",
|
|
"parameters": {
|
|
"command": [
|
|
"socat",
|
|
"tcp-listen:9222,fork",
|
|
"tcp:localhost:1337"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "chrome_open_tabs",
|
|
"parameters": {
|
|
"urls_to_open": [
|
|
"https://www.qatarairways.com/en-hk/homepage.html"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "activate_window",
|
|
"parameters": {
|
|
"window_name": "Google Chrome"
|
|
}
|
|
}
|
|
],
|
|
"trajectory": "trajectories/",
|
|
"related_apps": [
|
|
"chrome"
|
|
],
|
|
"evaluator": {
|
|
"func":"check_direct_json_object",
|
|
"result": {
|
|
"type": "active_tab_url_parse",
|
|
"goto_prefix": "https://www.",
|
|
"parse_keys": ["fromStation", "toStation", "departing"],
|
|
"replace":{
|
|
"departing": "time"
|
|
}
|
|
},
|
|
"expected":{
|
|
"type": "rule_relativeTime",
|
|
"rules":{
|
|
"relativeTime":{
|
|
"from": "next Monday"
|
|
},
|
|
"expected": {
|
|
"fromStation": "BOM",
|
|
"toStation": "STO",
|
|
"time": "{Year}-{Month0D}-{Day0D}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|