How To: Create a new file of a specific size

This is Syed Aslam Basha here from Relationship experience division (RXD) team. For one of my application testing I required files of specific different size starting from 1 MB to 1.5 TB. Using fsutil you can easily create a new file of a specific size as shown below: Syntax: fsutil file createnew <path with name…


C# Code Coverage using VS2010

This is Syed Aslam Basha here from Information security and risk management team. Code coverage describes the degree up to which the source code of the program has been tested. The process would involve setting up code coverage and testing the entire application. Preconditions You should have pdb files for the DLLs and deployed the…

3

Associating coded UI test to manual testcase

This is Syed Aslam Basha here from Information security and risk management team. In earlier blog posts I have shown automating functional test cases using coded UI Test (CUIT), here I will show “Associating CUIT to manual testcase. Right click on the solution, click on check-in. Check-in to Team foundation server (TFS) to appropriate folder,…


API Testing framework

This is Syed Aslam Basha here from Information security and risk management team. For one of my projects I had to test APIs, which takes input string, encode the input and return the encoded output strings. In this blog post am going to give the concept of API testing framework I used to test the…


Generate GUID using guidgen.exe

This is Syed Aslam Basha here from Information security and risk management team. You can generate Global unique identifier (GUID) using guidgen.exe, which is installed at “C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\guidgen.exe” Launch GUID generator; Click on start->All programs->Microsoft Visual studio 2010->Microsoft Windows SDK tools->GUID generator When the tool is launched or when you click on…

1

Database back up and Restore

Syed Aslam Basha here from the Information Security Tools Team. At times we may need to take a back up and restore a Database (DB), in this blog I will show the DB back up and restore feature. Steps to Back up DB: Launch SQL server management studio (SSMS) Enter server name Click on connect…


Runas feature

Syed Aslam Basha here from the Information Security Tools Team. At times you would have to run applications say internet explorer (IE) or sql server management studio (SSMS) or command prompt with service account for that you would login in a machine with service account and launch the applications. But with Runas feature you can…

1

How To: View header of EXE/DLL

Syed Aslam Basha here from the Information Security Tools Team. At times we may want to know the target platform (i.e. x86 or x64) of EXE/DLL. Visual studio provides corflags.exe tool to identify the target platform as; Launch visual Studio command prompt in admin mode Type CorFlags Assembly File Path and press enter Example C:\Windows\system32>corflags…

1

Delay between actions feature in CUIT

Syed Aslam Basha here from the Information Security Tools Team. The CUIT code is executed at a very fast pace, at times you may want to execute the code a bit slow or with a delay between actions. We have playback API which helps to achieve this as shown below; Playback.PlaybackSettings.DelayBetweenActions = 1000; The value…


How To: Data Drive CUIT Scripts

Syed Aslam Basha here from the Information Security Tools Team. One of the major feature for any automation tool is support for data driven test cases, CUIT too supports data driven testing. Let me show an example of data driving CUIT scripts. Suppose you want to validate login feature of an application with different users….