Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6122195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:52:14+00:00 2026-05-23T15:52:14+00:00

What would be some of the test cases involved int testing the copy command

  • 0

What would be some of the test cases involved int testing the copy command in windows environment ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:52:14+00:00Added an answer on May 23, 2026 at 3:52 pm

    Holy geez! There are likely MILLIONS of test cases that are both legitimate and unique for the “copy” command. Your best approach is to come up with different domains of inputs and scenarios. Here’s the domains I came up with a a handful of scenarios for each classification. Then the fun begins when you start doing testing across different the different domains (e.g. copy from a read-only set of file by wildcard to a network share)

    By no means is this an exhaustive list of domains or test scenarios. But should get you started… In the majority of cases, the test should involve comparing the source and destination files to validate the contents match.

    Copying between:
       network share
       A really slow network share across the Internet
       partitions
       disks
       disks of different types (flash, usb, external sata, SSD, etc...)
       directories
       within the same directory
    
    Naming
       Normal file name
       Filename that exceeds 8.3 (verylongfilename.whatever)
       Copying a very long file name, but referencing it by it's 8.3 name (copy verylo~1.wha d:\)
       A full directory path that exeeds MAX_PATH (260) characters (e.g. c:\a\very\long\directory\name\that\goes\on\forever\in\length......foo.txt)
       By absolute addressing (\\?\\c:\foo\foo.txt)
       wildcards (e.g. *.* *.txt foo?.txt )
       A filename with unicode characters
       A filename with illegal characters in it (there are creative ways to get these files on disk)
    
    Attributes
       Testing with different file attributes (read-only, hidden, system, archive, etc...)
       Validate timestamp is preserved across copies
       Validate timestamp is preserved across network file share copies when the destination machine is in another timezone
       NTFS ACLs are preserved
    
    Addressing types
       reference by absolute path (e.g. copy c:\some\directory\foo.txt c:\other\place\foo.txt)
       reference by relative path (e.g. copy ..\..\documents\whatever\foo.txt subdirectory/foo.txt)
       By absolute drive letter into current working directoroy of destination (with no path (e.g. copy foo.txt d:)
       Network share mounted to a drive letter
    
    Failure cases, edge cases, and hack attacks
       Try to copy a file onto itself (e.g copy c:\foo.txt c:\foo.txt)
       Copy when the network share is down.
       Unplug the network cable in the middle of a network file copy
       copy to a read only directory
       copy when the source file is locked.
       copy the when destination file exists but the destination file exists and is read only
       Detach the external disk right before the file copy starts
       disk is near full (But would be full before the entire copy finishes)
       disk is full
       Unplug the power cable in the middle of the copy!
       During a very long copy, start another copy with the same source file, but to another destination
       During a very long copy, start another copy with a different source file, but the the same destination
       During a very long copy, start another copy with the same source and destination files!
    
    File types
       ascii file
       unicode file
       binary file
    
    Environments
      RAID configurations
      FAT and NTFS
      Windows XP, Vista, 7, Server 2003, etc... (you can quantify this by asking the requirement of "which OS" up front)
      Virtual Machine (VMWare, virtual PC, hypervisor, etc...)
      Intel and AMD
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to setup some automated testing of test cases upon Fortran binaries
I would like some kind of delete/copy/move/etc Windows commands that completely ignores if a
I would like to test some exception handling logic in the empty catch block
I have some useful wpf buttons to test some functionality. It would be good
I've written some applications than heavily use network, and I would like to test
We need some consistency in our functional test cases. The best we can do
I'm trying to write some test cases for my Qooxdoo application, and I think
Suppose , i have some x test-cases to be read from input, where each
I've ran into a strange situation. I'm writing some test cases for my program.
On my last project, I created some test cases through Selenium , then automated

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.