Pas de récupération des rapports d'éxécutions

laetitia.autier
Messages : 6
Inscription : mer. janv. 25, 2023 10:47 pm

Pas de récupération des rapports d'éxécutions

Message par laetitia.autier »

Bonjour,

Lors que je lance un test automatisé à partir de squash TM je ne récupère aucun rapport :
rapport.png
rapport.png (15.42 Kio) Consulté 805 fois
J'ai pourtant bien installé le plugin result publisher (pour information je suis en version 5.0.0 de squashTM) :
plugin.png
plugin.png (63.31 Kio) Consulté 805 fois
Après j'ai vu qu'au niveau de mon projet le plugin devrait apparaître et être paramétrable mais ce n'est pas le cas, il n'est pas présent dans la liste de mes plugins:
liste.png
liste.png (34.54 Kio) Consulté 805 fois
Côté applicatif je vois bien que mon test fonctionne pourtant, je ne récupère juste pas les résultats.

La seule erreur que j'ai se trouve dans les logs de squash TM mais je ne sais pas si il y a un lien :

Code : Tout sélectionner

Caused by: org.squashtest.tm.plugin.testautomation.squashautom.commons.httpclient.ClientRuntimeException: Failed to manage REST call for technical reasons
    at org.squashtest.tm.plugin.testautomation.squashautom.commons.httpclient.SquashAutomBusClientImpl.performJsonRESTCall(SquashAutomBusClientImpl.java:63) ~[automation.squashautom.community-5.0.0.RELEASE.jar:?]
    at org.squashtest.tm.plugin.testautomation.squashautom.commons.httpclient.SquashAutomBusClientImpl.publish(SquashAutomBusClientImpl.java:48) ~[automation.squashautom.community-5.0.0.RELEASE.jar:?]
    at org.squashtest.tm.plugin.testautomation.squashautom.commons.StartTestExecution.transmitExpectedSuiteData(StartTestExecution.java:207) ~[automation.squashautom.community-5.0.0.RELEASE.jar:?]
    at org.squashtest.tm.plugin.testautomation.squashautom.commons.StartTestExecution.run(StartTestExecution.java:114) ~[automation.squashautom.community-5.0.0.RELEASE.jar:?]
    ... 144 more
Caused by: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
 at [Source: (org.apache.http.conn.EofSensorInputStream); line: 1, column: 2]
Connaîtriez vous un moyen de résoudre le problème ?

Merci par avance pour votre aide.
laetitia.autier
Messages : 6
Inscription : mer. janv. 25, 2023 10:47 pm

Re: Pas de récupération des rapports d'éxécutions

Message par laetitia.autier »

Bonjour,

Nous ne récupérons toujours pas nos rapports d'exécutions sur Squash TM.
Cependant, nous avons ajouté l'url de l'event bus à notre serveurs d'exécution automatisée sur squash TM et cella a corrigé l'erreur.
Une nouvelle erreur est désormais présente du côté de l'orchestrator :

Code : Tout sélectionner

[2023-03-14 02:59:56,707] ERROR in eventbus: Publication status code from e289e0a7-76ec-46c1-9d25-7ffce1022565 is 422.  Failure details: {"metadata":{},"apiVersion":"v1","status":null,"message":null,"reason":"Invalid message for kind opentestfactory.org/v1beta1/ExecutionCommand","details":{"validationReport":"The event opentestfactory.org/v1beta1/ExecutionCommand is not accepted by this module. List of accepted events :\nopentestfactory.org/v1alpha1/WorkflowCompleted\nopentestfactory.org/v1alpha1/WorkflowCanceled\nopentestfactory.org/v1alpha1/ExecutionCommand\nopentestfactory.org/v1alpha1/ExecutionResult\n"},"code":422,"kind":"Status"}.
Auriez vous des pistes pour résoudre cette erreur s'il vous plait ?
Cordialement,
richardsonfinlay
Messages : 1
Inscription : mar. nov. 21, 2023 9:59 am

Re: Pas de récupération des rapports d'éxécutions

Message par richardsonfinlay »

This indicates that instead of valid JSON, some invalid response starting with "<" is being returned, which is likely HTML or XML.

Some things to try:
  • Ensure the Result Publisher plugin is properly installed and configured on the Squash TM server
  • Validate the URL of the result publisher endpoint returns JSON when accessed directly
  • Check if an HTTP proxy or firewall could be intercepting calls and returning incorrect responses
  • Disable any browser extensions/plugins that could modify responses
  • Try with Postman or cURL first to isolate issues with Squash TM's HTTP client
  • Look for issues around CSRF protection rejecting the POST requests
Essentially - that JSON parsing failure implies the HTTP result publisher plugin is not returning the JSON Squash TM expects. Narrowing down why invalid content is returned should help troubleshoot.
Life can only be understood backwards; but it must be lived forwards geometry dash
itslay
Messages : 2
Inscription : mer. janv. 24, 2024 9:41 am

Re: Pas de récupération des rapports d'éxécutions

Message par itslay »

J'ai lu attentivement votre message et je veux juste dire que les informations que vous avez partagées sont fantastiques et que j'en ai beaucoup appris.
Répondre

Revenir à « Squash »