question

jtam avatar image
jtam asked Bizzeonline answered

How to use Avalanche to simulate real websites (Files from Directory)

What are some ways I can simulate real websites using Avalanche? Preferably, I want the clients to randomly pick from a pool of websites and get all resources from that site.

What I had in mind was to save a bunch of webpages on Chrome (so I'll get a site.html and a sites_files folder with all the resources that site contains). In the actions list, could it be like:

for each file in site_files

1 get https://1.2.3.4/site_files/file

end for each

I do not know the exact syntax so I'll have to figure that out.

Or would 1 get https://1.2.3.4/site.html actually grab everything the site has if it's in the sites_file folder?

If anyone has any suggestions, I really appreciate it.

Thanks!

Avalancheavalanche commander
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

mrhines avatar image
mrhines answered mrhines edited

You can use assign variables to load in a list of files from a formsDB file.

Example 1:
Create a forms database file 'Form_001'
(Avalanche help keyword 'Forms Database)

file1
file2
file3
...

Call this from the action list by assigning to a variable. (multiple variables are also supported)
(Avalanche help keyword 'Assign Variable')

ASSIGN VARIABLE <myvar1 Form_001.$1>

1 GET https://1.2.3.4/<APPLY myvar1>/file

Example 2:

To have Avalanche clients parse a response and auto request all resources use the fetch_resources feature:
(Avalanche help keyword 'HTTP Fetch Resources')

1 GET https://1.2.3.4/ <FETCH_RESOURCES>

Please note using 'files from directory' can impact max performance and should be saved only for test cases that cannot use simulated files.
Most test cases can use simulated files which will respond to any file name and can have a randomized response object size and payload for each request.

If you run into any issues please open a service request for support assistance.

10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Bizzeonline avatar image
Bizzeonline answered

What are a few different ways I can recreate genuine sites utilizing Avalanche? Ideally, I believe the clients should haphazardly pick from a pool of sites and get all assets from that site.

Thanks

website development company in Gurgaon

10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Ackrolix5e avatar image
Ackrolix5e answered

What are a few different ways I can recreate genuine sites utilizing Avalanche? Ideally, I believe the clients should haphazardly pick from a pool of sites and get all assets from that site. What I had at the top of the priority list was to save a lot of website pages on Chrome (so I'll get a site.html and a sites_files organizer with every one of the assets that webpage contains). In the activities list.

Thanks

website designing company in Riyadh

10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Asku76 avatar image
Asku76 answered Asku76 rolled back

I would like to remind you that using 'documents from index' may affect maximum execution.Should be reserved only for experiments in which recreated data cannot be used.

10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

ackrolix avatar image
ackrolix answered

Kindly note utilizing 'documents from index' can influence max execution and ought to be saved exclusively for experiments that can't utilize recreated records. Most experiments can utilize reenacted documents which will answer any record name and can have a randomized reaction object size and payload for each solicitation.

Thanks.

Web Development Company in Dubai

10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.