82 lines
1.6 KiB
JSON
82 lines
1.6 KiB
JSON
{
|
|
"id": "8909d1cb-5877-44c7-a908-9f1875302441",
|
|
"snapshot": "libreoffice_calc",
|
|
"instruction": "Copy the \"Date\" and \"Revenue ($)\" values to a new sheet for the rows whose \"Sales Channel\" is \"E-mail Coupon\".",
|
|
"source": "SheetCopilot@177",
|
|
"config": [
|
|
{
|
|
"type": "download",
|
|
"parameters": {
|
|
"files": [
|
|
{
|
|
"url": "https://drive.google.com/uc?id=1bNHlYdEXNBBHab1kiYaD35Xc3hNIyR8J&export=download",
|
|
"path": "/home/user/SummerSales.xlsx"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "open",
|
|
"parameters": {
|
|
"path": "/home/user/SummerSales.xlsx"
|
|
}
|
|
}
|
|
],
|
|
"trajectory": "trajectories/8909d1cb-5877-44c7-a908-9f1875302441",
|
|
"related_apps": [
|
|
"libreoffice_calc"
|
|
],
|
|
"evaluator": {
|
|
"postconfig": [
|
|
{
|
|
"type": "activate_window",
|
|
"parameters": {
|
|
"window_name": "SummerSales.xlsx - LibreOffice Calc",
|
|
"strict": true
|
|
}
|
|
},
|
|
{
|
|
"type": "sleep",
|
|
"parameters": {
|
|
"seconds": 0.5
|
|
}
|
|
},
|
|
{
|
|
"type": "execute",
|
|
"parameters": {
|
|
"command": [
|
|
"python",
|
|
"-c",
|
|
"import pyautogui; pyautogui.hotkey(\"ctrl\", \"s\");"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "sleep",
|
|
"parameters": {
|
|
"seconds": 0.5
|
|
}
|
|
}
|
|
],
|
|
"func": "compare_table",
|
|
"expected": {
|
|
"type": "cloud_file",
|
|
"path": "https://drive.google.com/uc?id=1_KlsYyVzWbp9r6ZAHxNPeHozk04Ksryv&export=download",
|
|
"dest": "2_SummerSales_gt1.xlsx"
|
|
},
|
|
"result": {
|
|
"type": "vm_file",
|
|
"path": "/home/user/SummerSales.xlsx",
|
|
"dest": "SummerSales.xlsx"
|
|
},
|
|
"options": {
|
|
"rules": [
|
|
{
|
|
"type": "sheet_data",
|
|
"sheet_idx0": 0,
|
|
"sheet_idx1": "EI0"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
} |