Skip to content

DIY: SMART TIPS TO TEST!

Tip #1 – Test Data: Creating exact file size using DOS command utility.

Let us say you wanted to test file upload feature in web application and the maximum file upload size is 3 MB. Now, you search in your local computer to see whether you have 3MB file and finally you see that you do not have exact 3 MB size for any file. Now, what do you do? Will you open *.txt and start entering characters and keep checking if the file is showing 3 MB? Well, that can be done; but it is time consuming and crude way of doing it. We call ourselves engineers, let us do it in cool way.

For windows user, you can just try this command on your DOS prompt;

fsutil file createnew enter_your_filename_here enter_the_number_of_bytes_you_want_to_create

Example: fsutil file createnew myprofilepicture.PNG 12000

 

Tip #2 – Converting image formats from one to another in bulk

Let us say, you took a lot of screenshots and finally you see that they have lot of file size as you saved them as *.BMP which is why they show up big file size. Now, you want to convert all of them to light-weight file sizes format which could be JPG or PNG. How would you do that? Keep opening every image one by one and again “Save as”? Again, crude way. What if the screenshots that you took are like 100+ images?

Now, let us show you some way where you can change the file formats in few seconds for large number of image files whose format is *.BMP

Download ImageMagick from http://imagemagick.org/

You have a command which you can execute once you install the software successfully!

Here is the command,

convert filename.BMP filename.PNG

Voila!

Well, you need not keep writing the file names every time you need to change the file format. You may want to collect all file names of BMP using DOS command, I will not let you know about this. I want you to figure out this while I have given you the command for conversion. You can run list of commands using Excel or *.bat (Batch file). Go, explore!

 

Tip #3 – Compare the build files for every new build.

The first activity that needs to be done from a tester could be, comparing the new build files with the stable build which has complete set of files. With this activity, one can get to know if some file is missing and a high alert can be raised to the development team to fix it and check-in new build files to start the testing activity. This can happen if you have access to the source code repository. Most of the testers do not even want to get access to the source code repository and have an assumption that, they are not allowed to do so, while it was just one e-mail sent to the development team your test manager so that he / she could get you the access. For doing this you can use “Beyond Compare” which has folder compare which compares file by file. If some file is missing, then you can get to know at the early stage and you get to know something if fishy with the new build.

 

Tip #4 – SysInternals Suite – Use them and find out how every utility can help

I have been a fan of Sysinternals Suite utilities. They are tiny, yet bloody powerful. I personally have used it since my school days for various activities, oh yes; being a hacker these tiny little chaps help me in doing a lot. I bet, you cannot ignore yourself from falling in love with them. Every tiny utility helps me identify the tests that I can do. It is like reverse engineering, I use the utility and then identify how this utility can help in my testing activity. Try them at your convenience and you may love them.

Follow Me

SanthoshTuppad

Software Tester, Product Innovator, Security Enthusiast at Test Insane Software Testing Services
I have been as a software tester for over 5 years. I am a hands-on tester and I've been winning bug battles & testing competitions across the world. I am a testing enthusiast, who conducts free workshops on security testing across India (Covered locations: Bengaluru, Pune, Hyderabad & Chennai. Invite him to come to your location), and monthly meets for testers in Bengaluru. I am also an avid testing blogger.

My interests include traveling, driving my SUV, health & fitness and many others. I mentor budding entrepreneurs, testers, teams in any profession.
Follow Me

Latest posts by SanthoshTuppad (see all)

Share/Bookmark

7 Comments

  1. Deepak wrote:

    Good one learned from it
    Thanks for sharing!

    Tuesday, July 1, 2014 at 11:54 pm | Permalink
  2. Deepak Malladad wrote:

    Hey santosh,

    I cannot preview the image once i convert the image to a particular size using Tip 1.

    Is there any way to overcome it?

    Thanks in Advance
    Deepak Malladad

    Thursday, July 3, 2014 at 9:59 am | Permalink
  3. You will not see any visuals for that image, what you are bothered about is image format test data file and you did it. It doesn’t matter whether the image has a dog or cat or elephant as a picture to the application. I am not sure if this is what you wanted to listen to or your question is different? Please elaborate.

    Friday, July 4, 2014 at 3:27 am | Permalink
  4. Deepak Malladad wrote:

    Yes Thanks for that! I got it!

    Saturday, July 12, 2014 at 5:45 pm | Permalink
  5. Pradeep nain wrote:

    WoW..It’ll be of great help!! :)

    Wednesday, July 30, 2014 at 2:47 pm | Permalink
  6. Vishal wrote:

    Well for Tip # 2, we can use RENAME in DOS.E.g, RENAME *.BMP *.PNG

    Monday, November 2, 2015 at 10:48 pm | Permalink
  7. Thanks Vishal :-) You’re right on it.

    Tuesday, November 3, 2015 at 5:18 am | Permalink

One Trackback/Pingback

  1. […] DIY: Smart Tips to Test! – Santhosh Tuppad – http://tuppad.com/blog/2014/07/01/diy-smart-tips-to-test/ […]

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*