Hello all,
I just upadated today and got some error if I start my Testsuites over the commandline. The manuall start works just fine.
Some commands are executed multiple times and some other not once.
Here you can see my macro as JSON
{
"Name": "login",
"CreationDate": "2019-6-4",
"Commands": [
{
"Command": "pause",
"Target": "5000",
"Value": ""
},
{
"Command": "deleteAllCookies",
"Target": "",
"Value": ""
},
{
"Command": "echo",
"Target": "${!cmd_var1}",
"Value": ""
},
{
"Command": "open",
"Target": "${!cmd_var1}",
"Value": ""
},
{
"Command": "assertElementPresent",
"Target": "xpath=/html/body/div[2]/div[2]/form/div",
"Value": ""
},
{
"Command": "click",
"Target": "/html/body/div[2]/div[2]/form/div",
"Value": ""
},
{
"Command": "type",
"Target": "id=Username",
"Value": "XXXXXXX"
},
{
"Command": "type",
"Target": "id=Password",
"Value": "XXXXXXX"
},
{
"Command": "click",
"Target": "/html/body/div[2]/div[2]/form/div",
"Value": ""
},
{
"Command": "clickAndWait",
"Target": "/html/body/div[2]/div[2]/form/div/button",
"Value": ""
},
{
"Command": "captureEntirePageScreenshot",
"Target": "login",
"Value": ""
},
{
"Command": "localStorageExport",
"Target": "login.png",
"Value": ""
}
]
}
and here the log.
Status=Error: timeout reached when looking for element ‘xpath=/html/body/div[2]/div[2]/form/div’
[status] Playing test suite Component_Fieldtemplate
[status] Playing macro login
[status] Playing test suite Component_Fieldtemplate
[status] Playing macro login
[status] Playing test suite Component_Fieldtemplate
[status] Playing macro login
[status] Playing test suite Component_Fieldtemplate
[status] Playing macro login
[info] Executing: | pause | 5000 | |
[info] Executing: | pause | 5000 | |
[info] Executing: | pause | 5000 | |
[info] Executing: | pause | 5000 | |
[info] Executing: | assertElementPresent | xpath=/html/body/div[2]/div[2]/form/div | |
[info] Executing: | assertElementPresent | xpath=/html/body/div[2]/div[2]/form/div | |
[info] Executing: | assertElementPresent | xpath=/html/body/div[2]/div[2]/form/div | |
[info] Executing: | assertElementPresent | xpath=/html/body/div[2]/div[2]/form/div | |
[error] timeout reached when looking for element ‘xpath=/html/body/div[2]/div[2]/form/div’/div’
As you can see the pause and the assertElementPresent are multipletimes in the log but the type of the Username and Passwort not once. Also the simple echo is not logged.
This macro worked in the previouse version.