* Refactor LibreOffice Writer example JSON to support multiple expected and result files for line spacing comparison, enhancing evaluation flexibility. Updated function calls and added additional expected file paths. * Update source link in LibreOffice Writer example JSON to a more relevant help page for inserting tables, improving instructional clarity. --------- Co-authored-by: yuanmengqi <yuanmengqi@mail.ustc.edu.cn>
78 lines
2.3 KiB
JSON
78 lines
2.3 KiB
JSON
{
|
|
"id": "66399b0d-8fda-4618-95c4-bfc6191617e9",
|
|
"snapshot": "libreoffice_writer",
|
|
"instruction": "Could you help me insert a 7(columns)*5(rows) empty table at the point of cursor?",
|
|
"source": "https://help.libreoffice.org/latest/en-US/text/swriter/guide/table_insert.html",
|
|
"config": [
|
|
{
|
|
"type": "download",
|
|
"parameters": {
|
|
"files": [
|
|
{
|
|
"url": "https://huggingface.co/datasets/xlangai/ubuntu_osworld_file_cache/resolve/main/libreoffice_writer/66399b0d-8fda-4618-95c4-bfc6191617e9/Table_Of_Work_Effort_Instructions.docx",
|
|
"path": "/home/user/Desktop/Table_Of_Work_Effort_Instructions.docx"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "open",
|
|
"parameters": {
|
|
"path": "/home/user/Desktop/Table_Of_Work_Effort_Instructions.docx"
|
|
}
|
|
},
|
|
{
|
|
"type": "execute",
|
|
"parameters": {
|
|
"command": [
|
|
"python",
|
|
"-c",
|
|
"import pyautogui; import time; pyautogui.press(\"down\", presses=40, interval=0.01); time.sleep(1); pyautogui.scroll(-2)"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"trajectory": "trajectories/",
|
|
"related_apps": [
|
|
"libreoffice_writer"
|
|
],
|
|
"evaluator": {
|
|
"postconfig": [
|
|
{
|
|
"type": "activate_window",
|
|
"parameters": {
|
|
"window_name": "Table_Of_Work_Effort_Instructions.docx - LibreOffice Writer",
|
|
"strict": true
|
|
}
|
|
},
|
|
{
|
|
"type": "sleep",
|
|
"parameters": {
|
|
"seconds": 0.5
|
|
}
|
|
},
|
|
{
|
|
"type": "execute",
|
|
"parameters": {
|
|
"command": [
|
|
"python",
|
|
"-c",
|
|
"import pyautogui; import time; pyautogui.hotkey('ctrl', 's'); time.sleep(0.5); "
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"func": "compare_docx_tables",
|
|
"expected": {
|
|
"type": "cloud_file",
|
|
"path": "https://huggingface.co/datasets/xlangai/ubuntu_osworld_file_cache/resolve/main/libreoffice_writer/66399b0d-8fda-4618-95c4-bfc6191617e9/Table_Of_Work_Effort_Instructions_Gold.docx",
|
|
"dest": "Table_Of_Work_Effort_Instructions_Gold.docx"
|
|
},
|
|
"result": {
|
|
"type": "vm_file",
|
|
"path": "/home/user/Desktop/Table_Of_Work_Effort_Instructions.docx",
|
|
"dest": "Table_Of_Work_Effort_Instructions.docx"
|
|
}
|
|
},
|
|
"proxy": false
|
|
} |