Hi,
I'm currently running my load tests with Neoload and I have added Dynatrace timers within each request by using the "x-dynatrace" header. I was willing to know if I'm able to make these results appear on the automation dashlet. It would be great if you could print out the exact steps to make this happen.
Thanks,
Solmaz
Answer by Andreas G. ·
Check out the following doc page and scroll to "loadtests": Test Automation
In 5.5 you need the "extra step" to execute a dummy unit test in order to get an entry in the test automation dashlet.
Answer by Solmaz A. ·
Hi Andreas,
I'm not such a good developer but I want to call the rest services within NANT. I'm trying to use curl to send the POST HTTP commands. Somehow I can't get it working for setting the test meta data. ( I got it working for the start recording session):
call "curl.exe" -X POST -d "testrunname=loadtest&category=load" http://{servername}:8020/rest/management/profiles/{profile-name}/setmetadata -u "user: pass" {DT server}
I'm getting the error bellow:
Problem accessing /rest/management/profiles/RDCWeb_CI/setmetadata. Reason:
Method Not Allowed
I was really hoping that I could use your rest services through an easy querystring format like: /rest/management/profiles/RDCWeb_CI/setmetadata?testrunname=loadtest&category=load.
Am I missing something?
thanks,
Solmaz
Answer by Andreas G. ·
I HTTP Method is PUT - not POST - thats why you get the error "Method Not Allowed". "Method" refers to the HTTP Method (GET, POST, PUT, DELETE, ...). Change it to PUT and give it a try
Hi Andreas,
Any updates on this? I'm really blocked on this automation task as I can't get the Rest service working and the NANT library is not ready yet.
Thanks,
Solmaz
Hi
I just took a closer look and i think we may have a solution here that doesnt even require an update to the NAnt Task implementation. The NAnt Task allows you to define a list of custom properties. It is a list of name value pairs. You should be able to specify the missing information by adding one custom parameter with the key "category" and the value "load".
Please give this a try
Answer by Solmaz A. ·
Hi Andreas,
I tried the same curl command with PUT. I also tried it with a powershell script. Now I don't get the error for Method Not Allowed. and I get the results as below:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><result value="true"/>
but when I try to run my test it all shows up as unit test category.
Any idea how to fix this? I'm blocked on my automation due to this issue.
thanks,
Solmaz
Answer by Richard U. ·
Hi Solmaz,
in our demo environment we do the following sequence
Note: The TA-Dashlet entry for a loadtest is just a shortcut (if one does not consider the implementation cost) for opening the recorded session in the "Load Test Overview" dashboard. This dashboard is usually reachable via Start Center -> Analyze Performance
Hi Richard,
Thanks for your response.. I got this working manually by running each step individually without any automation. The step that I'm currently stuck for my automation is step #2. I can't get the Rest service call right. I can't use NANT library for now as it doesn't support the test information. I'm using the curl command as below to set my automation data:
call "curl.exe" -X PUT -d "category=load&testrunname=loadtest" http://{servername}/rest/management/profiles/{profile name}/setmetadata -u "user: pass" {servername}
in response I get <?xml version="1.0" encoding="UTF-8" standalone="yes"?><result value="true"/>
so I'm thinking the metadata should be set successfully. But it's not working correctly and I don't see the load test session recording appear under the load test category. Don't know where the problem is.
Any thoughts?
thanks,
Solmaz
DECEMBER 12, 10:00 AM GMT / 2:00 PM ET
Learn how Dynatrace Real User Monitoring automatically detects errors that impact your end users caused by erroneous 3rd party or CDNs.
December 10, 4:00 pm CET / 10:00 am ET
Register here
Learn how Dynatrace Real User Monitoring automatically detects errors that impact your end users caused by erroneous 3rd party or CDNs.
December 10, 4:00 pm CET / 10:00 am ET
Register here
Learn how Dynatrace Real User Monitoring automatically detects errors that impact your end users caused by erroneous 3rd party or CDNs.
December 10, 4:00 pm CET / 10:00 am ET
Register here