88 lines
1.7 KiB
JSON
88 lines
1.7 KiB
JSON
{
|
|
"id": "cb074a90-17ca-4f2a-be85-6f3c354040be",
|
|
"snapshot": "libreoffice_calc",
|
|
"instruction": "Create a Pivot Table in a new sheet named to calculate the total Operating Expenses for each year.",
|
|
"source": "SheetCopilot@86",
|
|
"config": [
|
|
{
|
|
"type": "download",
|
|
"parameters": {
|
|
"files": [
|
|
{
|
|
"url": "https://drive.google.com/uc?id=1mXsdnVfTwJGUeErnDPi00-qet-OoUCKP&export=download",
|
|
"path": "/home/user/IncomeStatement.xlsx"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "open",
|
|
"parameters": {
|
|
"path": "/home/user/IncomeStatement.xlsx"
|
|
}
|
|
}
|
|
],
|
|
"trajectory": "trajectories/cb074a90-17ca-4f2a-be85-6f3c354040be",
|
|
"related_apps": [
|
|
"libreoffice_calc"
|
|
],
|
|
"evaluator": {
|
|
"postconfig": [
|
|
{
|
|
"type": "activate_window",
|
|
"parameters": {
|
|
"window_name": "IncomeStatement.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=1pcIlTRX3Y9lbAehS6u6el8sCUAQt8af_&export=download",
|
|
"dest": "4_IncomeStatement_gt1.xlsx"
|
|
},
|
|
"result": {
|
|
"type": "vm_file",
|
|
"path": "/home/user/IncomeStatement.xlsx",
|
|
"dest": "IncomeStatement.xlsx"
|
|
},
|
|
"options": {
|
|
"rules": [
|
|
{
|
|
"type": "pivot_table",
|
|
"sheet_idx0": 0,
|
|
"sheet_idx1": "EI0",
|
|
"pivot_props": [
|
|
"col_fields",
|
|
"filter",
|
|
"row_fields",
|
|
"data_fields"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
} |