Skip to main content
New Participant
Dec 1, 2023 5:42 PM UTC
Solved

Best way to create a load and performance test

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.

    dawidAnswer
    New Participant
    Dec 4, 2023 11:57 AM UTC

    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");
    

    2 replies

    dawidAuthorAnswer
    New Participant
    Dec 4, 2023 11:57 AM UTC

    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");
    
    Translate
    rbarbosa Box
    Developer Advocate
    Dec 4, 2023 3:56 PM UTC

    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

    Translate