Expand my Community achievements bar.

SOLVED

How to change the default image upload location in Tough Day ??

Avatar

Level 1

Hello,

When I use the uploadImage command tough day uploads to /content/dam but for some specific requirement I need to upload in a different location (Eg.. /content/dam/active/new

I tried to check in all the tough day files, if this path is mentioned, but no luck yet.

Could anyone let me know how to change the default image upload path.

Thanks & Regards,

Narendra Prasad.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi,

I guess, that your taking the wrong approach then. ToughDay uses HTTP requests to upload the DAM assets, and there's no magic in there. Instead of understanding and refactoring the ToughDay UploadImage step, you can script your own asset upload functionality using the SlingPostServlet [1].

Jörg

[1] https://sling.apache.org/documentation/bundles/manipulating-content-the-slingpostservlet-servlets-po...

View solution in original post

4 Replies

Avatar

Employee Advisor

Hi,

As Scott already wrote, ToughDay is a performance and benchmarking tool, which is just run and which is not supposed to be adapted. But as it is implemented as jmeter scripts, you can modify the .jmx files according to your requirements. But I don't see any reason to change it.

Kind regards,
Jörg

Avatar

Level 10

Tough Day tool is about testing AEM performance - therefore they hard coded the upload path. I am not sure that you can change this location. I am not seeing any config option that lets you specify the upload path.  

Apart of the AEM docs - here is a good community article on this tool with respect to the AEM DAM:

http://cq-ops.tumblr.com/post/33656895535/a-cq-dam-performance-benchmark-for-images-and-pdfs

Avatar

Correct answer by
Employee Advisor

Hi,

I guess, that your taking the wrong approach then. ToughDay uses HTTP requests to upload the DAM assets, and there's no magic in there. Instead of understanding and refactoring the ToughDay UploadImage step, you can script your own asset upload functionality using the SlingPostServlet [1].

Jörg

[1] https://sling.apache.org/documentation/bundles/manipulating-content-the-slingpostservlet-servlets-po...

Avatar

Level 1

Hi jörg,

Yeah I know ToughDay is for performance and benchmarking. But, I was planning to use toughday for uploading huge data to an application (AEM based) . We have a requirement to monitor the server performance while downloading huge data uploaded(in a specific location). For download we have a script, but for upload i was planning to use toughday as already uploadImage feature exists.

.jmx files are available for createPages, authoring and many other functionalities offered by ToughDay, but .jmx is not available for uploadImage.

Best Regards,

Narendra Prasad.

Note: As this reply was showing twice i tried to delete but both entries got deleted, hence adding it again.