Skip to main content
Solved

Best way to create a load and performance test


  • New Participant
  • 2 replies

Hello Community,


I’m relatively new to the platform and could use some guidance on the most effective approach to conduct load and performance testing using the Box API.


My objective is to simulate substantial traffic from diverse users simultaneously, each with varying rights and permissions that need to be pre-configured. These users are expected to perform basic CRUD operations and execute various searches on the platform.


I am seeking advice on the appropriate method to implement such a scenario on the Box platform. Specifically, I would appreciate insights into the recommended box application type and any other pertinent details that could facilitate the successful execution of these tests.


Thank you in advance for your valuable assistance.

Best answer by dawid

Ok this was easy


var boxConfig = new BoxConfigBuilder("client_id", "secret")

    .SetEnterpriseId("2222222222")

    .Build();



var boxCCG = new BoxCCGAuth(boxConfig);



var adminToken = await boxCCG.AdminTokenAsync();

var userclient = boxCCG.UserClient("123456789");

// Some api call as example

var myFile = await userclient.FilesManager.DownloadAsync("11111111111111");

View original
Did this topic help you find an answer to your question?

2 replies

  • Author
  • New Participant
  • 2 replies
  • Answer
  • December 4, 2023

Ok this was easy


var boxConfig = new BoxConfigBuilder("client_id", "secret")

    .SetEnterpriseId("2222222222")

    .Build();



var boxCCG = new BoxCCGAuth(boxConfig);



var adminToken = await boxCCG.AdminTokenAsync();

var userclient = boxCCG.UserClient("123456789");

// Some api call as example

var myFile = await userclient.FilesManager.DownloadAsync("11111111111111");


rbarbosa Box
  • Developer Advocate
  • 553 replies
  • December 4, 2023

Hi @dawid , welcome to the forum!


It seems you found the answer faster than we could respond, which I guess is a good thing.


However, we are here 😃 , so keep posting, and let us know if we can help in anyway.


Cheers


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings