Quiero enviar una notificación de holgura para el resultado de mi prueba.
aquí está mi matriz
Nombre del caso de prueba: [Prueba 1, Prueba 2, Prueba 3r]
Estado del caso de prueba: [verdadero, falso, falso]
¿Cómo creo esta cadena usando javascript?
Aquí está mi JsonString que quiero usando javascript
{ "blocks": [ { "type": "section", "text": { "type": "mrkdwn", "text": "WebDriverIO Automation Status .\n\n *Following are details:*" } }, { "type": "divider" }, { "type": "context", "elements": [ { "type": "mrkdwn", "text": "Test 1" }, { "type": "mrkdwn", "text": " :negative_squared_cross_mark: " } ] }, { "type": "context", "elements": [ { "type": "mrkdwn", "text": "Test 2" }, { "type": "mrkdwn", "text": " :x: " } ] }, { "type": "context", "elements": [ { "type": "mrkdwn", "text": "Test 3r" }, { "type": "mrkdwn", "text": " :x: " } ] } ] }Webhook flojo:
axios.post( "hook url", { text: `${asJSON}`, } );