Learn how to write test cases for file transfer. This post is written to address the interview question regarding the test cases for file transfer. The question asked was specific to the FTP software and in some of the cases the test was supposed to be regarding the file transfer within the Webapp. Here for this post, I’m assuming that file transfer of FTP application like Filezilla is under test. You can pickup web based file transfer and adjust the test cases accordingly. Some of the test cases are going to be common among them.
Let’s assume you’re using application – FileZilla.
Check the screenshot below for application with file transfer features.
Test Cases File Transfer
- Check if the file transfer application is initiated.
- Check if the file transfer starts successfully.
- Check if the file transfer modes – binary or ASCII are available.
- Check if the file transfer permission is set to 644 on server.
- Check if the file is added to the transfer queue successfully.
- Check if the file transfer can be started without adding a file.
- Check if the file transfer can be started by sending an empty file.
- Check if the file with number as file name is accepted for file transfer.
- Check if the file with maximum character is accepted for file transfer.
- Check if the file without extension is accepted for file transfer.
- Check if a file that exceeds maximum number of characters by 1 (max+1) can be sent.
- Check if the file with 1 character or number is allowed to transfer.
- Check if you can set the Unicode endian character set without selecting the type of file transfer like ASCII or binary.
- Check if you can send the file successfully by setting the file transfer type as binary.
- Check if the file is possible to be sent by selecting the type as ASCII.
- Check if the file is possible to be sent where file has entire ASCII character set.
- Check if the file is possible to be sent where the file has entire UTF-8 character set.
- Check if the file is possible to be sent where the file has Unicode character set.
- Check if the file transfer can be initiated at low upload speed such as 2Kbps or lower.
- Check if the file transfer can be finished in specific duration at high upload speed such as 1mbps.
- Check if the file transfer can be initiated and finished on 2G Edge network.
- Check if the file transfer can be initiated and finished on 3G network.
- Verify if the file transfer speed meet the specification of the test.
- Check if it is possible to upload the file that exceeds the upload speed specification and allowed upload bandwidth limit.
- Verify the time taken by the upload process by uploading multiple files under test.
You need to write the test steps for the above test cases. Just make sure that you are covering the important test steps that can pretty much be used for executing the above test cases. Read the below test steps to get the basic idea.
Test Steps to Verify File Transfer
- Open the application and obtain the FTP credentials from server admin.
- Navigate to the location directory.
- Make sure connection for file transfer isn’t broken.
- Verify the file transferred correctly.
- Check if the upload progress-bar shows 100% status after file is uploaded and message is also shown in logs.
- Check if the uploaded file doesn’t get appened to some new name after upload.
- Check if the uploaded file doesn’t change with size.
- Check if the uploaded files location is not changed.
- Open the file.
- Verify the contents of the file are not changed.
So I hope that the test cases and the test steps for the execution helps you. If you ahve any other questions and suggestions regarding the post, feel free to let me know if the comments.
I’d appreciate your feedback and will try to improve the upcoming posts. Please feel free to share this pages URL on social media with your friends and ask them to comment here. 🙂