Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adding file upload test #37

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

AllanPazRibeiro
Copy link

This PR introduces a load test file upload feature that allows for stress testing the application's file upload functionality. It automates the process of selecting and uploading files from the assets folder to simulate high concurrent file upload scenarios.

Changes Made:

  • Implemented the load test file upload feature.
  • Integrated the logic to randomly select multiple files from the assets folder.
  • Added error handling and logging to track the progress and success of the file uploads.

@AllanPazRibeiro AllanPazRibeiro self-assigned this Jun 22, 2023
src/client/Client.ts Fixed Show fixed Hide fixed
src/profile.ts Fixed Show fixed Hide fixed

const { filePath } = getRandomFileInFolder(folderPath);

const { authToken, userId } = this.client.currentLogin;

Check failure

Code scanning / CodeQL

Insecure randomness

This uses a cryptographically insecure random number generated at [Math.random()](1) in a security context. This uses a cryptographically insecure random number generated at [Math.random()](1) in a security context.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants