Hello,
I’m a beginner w/ Kantu. I’ve created a loop that reads a csv & completes some tasks.
I’d like to save a log file to my computer after the completion of all loops. I added it to the end here, but it ends up asking to save it after each loop.
Please advise.
Here is my simple script:
{
“Name”: “DemoCsvReadWithLoop_duplicate+mod”,
“CreationDate”: “2019-3-11”,
“Commands”: [
{
“Command”: “store”,
“Target”: “medium”,
“Value”: “!replayspeed”
},
{
“Command”: “csvRead”,
“Target”: “testloop6.csv”,
“Value”: “”
},
{
“Command”: “echo”,
“Target”: “Status = {!csvReadStatus}, line = {!csvReadLineNumber}”,
“Value”: “reads status & gives line number”
},
{
“Command”: “storeEval”,
“Target”: “(new Date().getHours()+” : " + new Date().getMinutes() + " : " + new Date().getSeconds())",
“Value”: “timestamp”
},
{
“Command”: “echo”,
“Target”: “line is beginning run at ({timestamp})",
"Value": ""
},
{
"Command": "open",
"Target": "{!COL1}”,
“Value”: “”
},
{
“Command”: “comment”,
“Target”: “”,
“Value”: “has opened the administrator backend”
},
{
“Command”: “type”,
“Target”: “name=rsf_backend_password”,
“Value”: “{!COL2}"
},
{
"Command": "clickAndWait",
"Target": "/html/body/div[1]/form/button",
"Value": ""
},
{
"Command": "comment",
"Target": "",
"Value": "submit button from firewall, next step goes into main login"
},
{
"Command": "type",
"Target": "id=mod-login-username",
"Value": "{!COL3}”
},
{
“Command”: “type”,
“Target”: “id=mod-login-password”,
“Value”: “${!COL4}”
},
{
“Command”: “clickAndWait”,
“Target”: “//[@id=“form-login”]/fieldset/div[3]/div/div/button",
“Value”: “”
},
{
“Command”: “comment”,
“Target”: “”,
“Value”: “submit button from login”
},
{
“Command”: “click”,
“Target”: “link=Extensions”,
“Value”: “”
},
{
“Command”: “clickAndWait”,
“Target”: “link=Plugins”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “id=filter_search”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “id=filter_search”,
“Value”: “System - Update Notification”
},
{
“Command”: “comment”,
“Target”: “”,
“Value”: “this is searching for the specific system update plugin”
},
{
“Command”: “clickAndWait”,
“Target”: "//[@id=“j-main-container”]/div[1]/div[1]/div[1]/div[1]/button”,
“Value”: “”
},
{
“Command”: “comment”,
“Target”: “”,
“Value”: “submit button to search”
},
{
“Command”: “click”,
“Target”: “id=cb0”,
“Value”: “”
},
{
“Command”: “comment”,
“Target”: “”,
“Value”: “this is the checkbox for the plugin”
},
{
“Command”: “clickAndWait”,
“Target”: “//*[@id=“toolbar-unpublish”]/button”,
“Value”: “”
},
{
“Command”: “comment”,
“Target”: “”,
“Value”: “this is the unpublish button”
},
{
“Command”: “click”,
“Target”: “link=User Menu”,
“Value”: “”
},
{
“Command”: “clickAndWait”,
“Target”: “link=Logout”,
“Value”: “”
},
{
“Command”: “comment”,
“Target”: “”,
“Value”: “logs out of admin backend”
},
{
“Command”: “localStorageExport”,
“Target”: “log”,
“Value”: “”
}
]
}