89 lines
1.8 KiB
JSON
89 lines
1.8 KiB
JSON
{
|
|
"id": "51719eea-10bc-4246-a428-ac7c433dd4b3",
|
|
"snapshot": "libreoffice_calc",
|
|
"instruction": "Calculate revenue in a new column and generate a Pivot Table in a new sheet (Sheet2) that summarizes the revenue of each product.",
|
|
"source": "SheetCopilot@7",
|
|
"config": [
|
|
{
|
|
"type": "download",
|
|
"parameters": {
|
|
"files": [
|
|
{
|
|
"url": "https://drive.google.com/uc?id=1P_8BeCgFJXQwUizF3eFYAeMS4YIw6dmA&export=download",
|
|
"path": "/home/user/BoomerangSales.xlsx"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "open",
|
|
"parameters": {
|
|
"path": "/home/user/BoomerangSales.xlsx"
|
|
}
|
|
}
|
|
],
|
|
"trajectory": "trajectories/51719eea-10bc-4246-a428-ac7c433dd4b3",
|
|
"related_apps": [
|
|
"libreoffice_calc"
|
|
],
|
|
"evaluator": {
|
|
"postconfig": [
|
|
{
|
|
"type": "activate_window",
|
|
"parameters": {
|
|
"window_name": "BoomerangSales.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=1YTwwhgaRAfE64qweHwUIWGFy643V7XUb&export=download",
|
|
"dest": "8_BoomerangSales_gt1.xlsx"
|
|
},
|
|
"result": {
|
|
"type": "vm_file",
|
|
"path": "/home/user/BoomerangSales.xlsx",
|
|
"dest": "BoomerangSales.xlsx"
|
|
},
|
|
"options": {
|
|
"rules": [
|
|
{
|
|
"type": "pivot_table",
|
|
"sheet_idx0": "RNSheet2",
|
|
"sheet_idx1": "ENSheet2",
|
|
"pivot_props": [
|
|
"col_fields",
|
|
"filter",
|
|
"row_fields",
|
|
"data_fields"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|