• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

SoftwareTestingo - Interview Questions, Tutorial & Test Cases Template Examples

SoftwareTestingo - Interview Questions, Tutorial & Test Cases Template Examples

  • Home
  • Interview Questions
  • Java
  • Java Programs
  • Selenium
  • Selenium Programs
  • Manual Testing
  • Test Cases
  • Difference
  • Tools
  • SQL
  • Contact Us
  • Search
SoftwareTestingo » Manual Testing » Test Cases Example » Test Case for Web Page File Upload

Test Case for Web Page File Upload

Last Updated on: February 20, 2022 By Softwaretestingo Editorial Board

What We Are Learn On This Post

  • Test Cases for File Upload
  • Test Cases For Drag & Drop File upload
  • Upload Functionality Test Cases

Test Case For File Upload: In this article, we are going to discuss test cases for file upload. Most of the cloud apps, mail apps like Gmail, File sharing app, and file transfer feature. That being said, the file upload feature often has a javascript enabled or AJAX call. Let’s discuss some test scenarios and requirements before we write the test cases.

To test effectively, the file upload module needs to have specific functionality developed. For example, here are some of the lists of requirements file upload features must have to be a good module in your web app.

Post On:Test Case For Web Page File Upload
Post Type:Test Case Template
Published On:www.softwaretestingo.com
Applicable For:Freshers & Experience
Have You CheckedOur Telegram Group

While some features can be implemented within the application, we should also think about the file upload feature in terms of security issues. Here are some security options to check while testing the application.

Similar Test Cases

SoftwareTestingo Test Cases
  • Test Case For Dialog Box
  • Test Case For Download Functionality
  • Test Case For Download Report
  • Test Case For Dropdown
  • Test Case For Edit Button
  • Test Case For Email Field

Test Cases for File Upload

File Attachment Test Case
File Attachment Test Cas
  • Check is the file upload button or link is present on the webpage or not.
  • Check the upload button or link is clickable.
  • Check is the whole button or text is clickable.
  • Check the upload functionality is working and functional by uploading a file.
  • Check is there any icon added with the button text, if yes check is the alignment is as per the requirement document.
  • Check on click of the upload button or link a window is opening, where they should be open to select the file.
  • Check is a user is limited to selecting a single file or multiple files?
  • Check is the user is allowed to upload multiple files once.
  • Check the application behavior by uploading a large name file.
  • Check is the uploader show a “success” message after the upload
  • Check is the error message is displaying if file uploading fails.
  • Check is the order of the file should be the same as files uploaded or both cases one by one and multiple files upload.
  • Check is the user can only be able to upload the allowed files only. For example doc, Docx or pdf, or image files like jpg, png, etc.
  • Check is a proper error message should be shown in case the user tries to upload the file which is not allowed. File type not allowed.
  • Check is the error message is displaying if the file size is large than the allowed one.
  • Check is an error message should be shown in case the user tries to upload files more than the allowed limit.
  • Check on upload file progress is showing or not.
  • Check if you allow only a specific set of files, then whitelist those file types.
  • Check the file upload module is capable of identifying the file type recognizer functionality built into it.
  • Check is the file upload feature should remove the special characters within the text area field is provided.
  • Check is the file upload is allowing alphanumeric content in the file names.
  • Check the File upload window don’t accept empty files with an extension that leads to SQL injection.
  • Check is the user is restricted to file name typing instead offer a file browsing dialog box to the upload button.
  • Check is the users are allowed to upload the same file multiple times.
  • Check during uploading a file on click of cancel button window should be closed.
  • Check is the user is allowed to upload the locked file.
  • Check if the user tries to upload a locked file then on enter the correct password only the file should upload.
  • Check a proper error message should be shown in case if password added for the protected or locked file is not correct.
  • Check the file name should be the same and display after uploading the file.
  • Check is the uploaded file extension is shown with the file name.
  • Check is the file size is displaying with the file name.
  • Check is … 3 dots should be displayed in case the file name is too large and disturbs the design.
  • Check by Trying to upload the file as a guest user or anonymous user. (If file upload is allowed only for registered users)

These are some of the basic options to check when it comes to security testing of the file upload module — typical File Upload feature on file upload sites like Dropbox or Google Drive.

Test Cases For Drag & Drop File upload

Here are some of the test cases and scenarios that you should consider while manual testing the module.

Test Case for Web Page File Upload 1
  • Check is the uploader is limited to selecting a single file or multiple files?
  • Check is the uploader allows the drag and drop type feature.
  • Check is the uploader requires browsing to file using the browse button?
  • Check is the uploader depends on any third-party plugin?
  • Check is the uploader is custom-built or makes use of the existing framework?
  • Check is the uploader supports drag and drops from the tablet app?
  • Check is the uploader includes the progress bar to show the estimated time left for file upload?
  • Check is the file size and type is displaying after uploading.
  • Check is the file uploader has any file size requirements?
  • Check is the uploader accepts image files in the format – jpg, gif, png?
  • Check is the uploader accepts document formats – pdf, doc, txt, xlsx?
  • Check is the uploader has any other specific application format requirements?
  • Check is the uploader has any specific file format blacklisted for security reasons?
  • Check what are some of the file formats whitelisted by the uploader?
  • Check is the system allows canceling the upload?
  • Check is the error message is displaying if file uploading fails.
  • Check is the error message is displaying if the file is uploaded partially.
  • Check on dropping the file in the marked area, the file should not open on the browser.

Upload Functionality Test Cases

Nowadays it is a need to upload files as we are taking photos, videos, selfies from our smart devices or upload official documents from our system or laptop, etc.

So due to all these usefulness, we need to test the Upload Functionality, so I am publishing some of the test scenarios are:

These are some of the test cases that you can try while testing the file upload feature of web apps. If you have a suggestion for any additional features to test or have any idea of missing one, then do let me know in the comments. I’d appreciate it if you share the article on social media.

    Filed Under: Test Cases Example

    Reader Interactions

    Comments

    1. Avatar for Revathy. RRevathy. R says

      May 13, 2021 at 12:19 PM

      Dear Team,
      Please give me some tips, means points how to write test cases with important points.

      Reply
      • Avatar for Softwaretestingo Editorial BoardSoftwaretestingo Editorial Board says

        May 13, 2021 at 12:31 PM

        Hi revathy,

        First you need to understand the application then you can can write test cases in a better way and also the understanding will help you to get more possisble scenario of the application.

        Reply

    Leave a Reply Cancel reply

    Your email address will not be published. Required fields are marked *

    Primary Sidebar

    Join SoftwareTestingo Telegram Group

    Categories

    Copyright © 2022 SoftwareTestingo.com ~ Contact Us ~ Sitemap ~ Privacy Policy ~ Testing Careers