completed all the incomplete tasks stored under libreoffice_calc before added metric check_data_validations
82 lines
2.0 KiB
JSON
82 lines
2.0 KiB
JSON
{
|
|
"id": "ecb0df7a-4e8d-4a03-b162-053391d3afaf",
|
|
"snapshot": "libreoffice_calc",
|
|
"instruction": "Enable each cell in the column\"Pass/Fail/Held\" is a drop down list",
|
|
"source": "https://www.youtube.com/shorts/tXOovKn0H68",
|
|
"config": [
|
|
{
|
|
"type": "download",
|
|
"parameters": {
|
|
"files": [
|
|
{
|
|
"url": "https://drive.usercontent.google.com/download?id=1vKtnFG-sL7Ba0UCcUh4dWJDfZeAHAP6l&export=download&authuser=0&confirm=t&uuid=70a267fa-dc71-4893-8fe3-a7254e50c567&at=APZUnTVfnhipGIdrD39159Eqv9lf:1705567650653",
|
|
"path": "/home/user/Order_Id_Mark_Pass_Fail.xlsx"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "open",
|
|
"parameters": {
|
|
"path": "/home/user/Order_Id_Mark_Pass_Fail.xlsx"
|
|
}
|
|
}
|
|
],
|
|
"trajectory": "trajectories/ecb0df7a-4e8d-4a03-b162-053391d3afaf",
|
|
"related_apps": [
|
|
"libreoffice calc"
|
|
],
|
|
"evaluator": {
|
|
"postconfig": [
|
|
{
|
|
"type": "activate_window",
|
|
"parameters": {
|
|
"window_name": "Order_Id_Mark_Pass_Fail.xlsx - LibreOffice Calc",
|
|
"strict": true
|
|
}
|
|
},
|
|
{
|
|
"type": "sleep",
|
|
"parameters": {
|
|
"seconds": 0.5
|
|
}
|
|
},
|
|
{
|
|
"type": "execute",
|
|
"parameters": {
|
|
"command": [
|
|
"python",
|
|
"-c",
|
|
"import pyautogui; pyautogui.press([\"ctrl\", \"s\"]);"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"func": "check_data_validations",
|
|
"expected": {
|
|
"type": "rule",
|
|
"rules": [
|
|
{
|
|
"ranges": {
|
|
"method": "spreadsheet_range",
|
|
"ref": ["D2:D29", "D2:D1048576"]
|
|
},
|
|
"type": {
|
|
"method": "eq",
|
|
"ref": "list"
|
|
},
|
|
"formula1": {
|
|
"method": "str_set_eq",
|
|
"ref": ["Pass", "Fail", "Held"]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"result": {
|
|
"type": "vm_file",
|
|
"path": "/home/user/Order_Id_Mark_Pass_Fail.xlsx",
|
|
"dest": "Order_Id_Mark_Pass_Fail.xlsx"
|
|
}
|
|
}
|
|
}
|