Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Erro on task Convert JMeter Results to JUnit Format #73

Open
EdiFirst opened this issue Aug 5, 2021 · 12 comments
Open

Erro on task Convert JMeter Results to JUnit Format #73

EdiFirst opened this issue Aug 5, 2021 · 12 comments

Comments

@EdiFirst
Copy link

EdiFirst commented Aug 5, 2021

I didn't understand what is necessary to perform the most basic test and publish.
At Jmeter folder I just let the sample.jmx I'm receiving the following error on the moment of Convert Jmeter Resullts:

image

I understand the script python don't found results.jtl , but the tasks before works without errors and generate this files on artifact:

image

What I'm missing out?

@EdiFirst
Copy link
Author

Hello, anyone can help ? Follow more information: Im receiving the follow error on the Collect JMeter Controller and Worker Logs:

image

@ghost
Copy link

ghost commented Aug 11, 2021

Same issue here... but no idea how to fix. I think that the test did not even run

@EdiFirst
Copy link
Author

Hey @allantargino please some ideia why this error ?

@ghost
Copy link

ghost commented Aug 17, 2021

@EdiFirst I pulled the newest version from the repository and then the issue was fixed. I think it had something to do with the az copy update.

@EdiFirst
Copy link
Author

@EdiFirst I pulled the newest version from the repository and then the issue was fixed. I think it had something to do with the az copy update.

Thank you @leonK-BO but there was a trouble with az copy too , but I already solve. What version did you got ? It's generated the jtl ?

@allantargino
Copy link
Contributor

Hi @EdiFirst, sorry the delay. From the image, the JMX file seems to be not present on the storage mount. Have you tried the newest fix that @leonK-BO mentioned?
Try to see if the jmx is present on the storage file share directly on Azure (using the portal or the CLI)

@EdiFirst
Copy link
Author

Hi @EdiFirst, sorry the delay. From the image, the JMX file seems to be not present on the storage mount. Have you tried the newest fix that @leonK-BO mentioned?
Try to see if the jmx is present on the storage file share directly on Azure (using the portal or the CLI)

No problem, yes the are files on storage:
image
Yes I saw the approach from @leonK-BO, but those azcopy tasks I already solved ,( just changed the path to results files as recommended):

image

It's like the jtl are not being generated by test execution. I'm not sure why this error: Can't open sample.jmx at task: 'RESULTS: Collect JMeter Controller and Worker Logs' This task should not try open sample.jmx should It ?

@EdiFirst
Copy link
Author

So @allantargino @leonK-BO Please some idea? I added the same code from repo and I'm receiving the same error (about could not open sample.jmx) .

@devlie
Copy link

devlie commented Sep 24, 2021

It's like the jtl are not being generated by test execution. I'm not sure why this error: Can't open sample.jmx at task: 'RESULTS: Collect JMeter Controller and Worker Logs' This task should not try open sample.jmx should It ?

That task simply prints the JMeter logs from controller and worker(s), so one of the nodes actually couldn't find sample.jmx. Since the file was in the share, the next thing to check is if the share was mounted properly on the node. Did you happen to change this part in main.tf?

    volume {
      name                 = "jmeter"
      mount_path           = "/jmeter"
      read_only            = true
      storage_account_name = azurerm_storage_account.jmeter_storage.name
      storage_account_key  = azurerm_storage_account.jmeter_storage.primary_access_key
      share_name           = azurerm_storage_share.jmeter_share.name
    }

@EdiFirst
Copy link
Author

Hey @devlie thank you by attention. Yes I change it from read_only to false. One detail that I realize running pwd inside de tf command was that the container is starting on the path: opt/apache-jmeter-5.1 (something like this), I believe because of that its not opening jmx file, because it doesn't exist on this path, the operation of copy are not working.

@axlvlv
Copy link

axlvlv commented Oct 2, 2021

Does anyone know how to find the artifacts in azure portal? Like this?
image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants