Wednesday, July 29, 2015

Visual Studio C# | Converting String to Integer

Values you enter on the text fields are considered strings or series of characters regardless if it is a number or integer. The sample application above converts string to number and them up then displays it on the label component. Code:    The action was triggered upon clicking the 'Add' button. note:    variable 'total' is declared as global variable with double type. Tip:    set 'FullRowSelect'...

Visual Studio C# | Allow Integer Input Only

There are certain field that you only want the user to input integer or numbers but there is always that doubt that they will accidentally press a non-numeric characters. The best way to catch that one is to forbid the user to input a letters, special characters and any other characters that is not needed for your specific field. For example, you are doing a form for a product and part of it's fields is the 'Price'. We all know  that the...

Monday, July 27, 2015

UFT GetROProperty and CheckProperty | Comparing Expected Text with Actual Text

There are times when you need to check if the Expected Text is displayed against Actual Text displayed on the actual applications. For intance: You need to check the exact page title description in the www.w3schools.com website. Figure 1: w3schools.com homepage screenshot Text that needs to check : 'The language for building web pages." You need also to consider that this part is a content maintainable. Which means, it is possible that...

Sunday, July 26, 2015

Android Studio

Few months ago, I started my android development exercises and trying to understand and learn the android application. Then one of my officemates introduce me to this Google's new application for android development. For those who didn't know, Eclipse is the most common android development tool which runs by java. And now, Google releases the 'Android Studio' in May 2013. I am trying to create my first android app and love to share it for you...

Friday, July 24, 2015

Visual Studio C# | Communicating with MS Access

One of the important thing when developing an application is to have a data storage where you can store all you important data whether it is from the user or for the user. This post is all about connecting with MS Access as Database with Visual Studio C# and populate the retrieved data to the ListView component. //initialize database connection private OleDbConnection dbConn = new OleDbConnection(); //Connection string string strConnString...

Wednesday, July 22, 2015

UFT Datatables | Accessing Datatables ~ Tips and Tricks

I've been working with DataTables for quite long time now, and there are instances that you will think of the ways to maximize the use of those rows and columns of the table. For a usual scenario, you use the DataTable for the sets of data that is used for each iteration of the code like for instance, User Profile, etc. To have a quick overview of what I am talking about, here's the sample view of a usual usage of the DataTable. Figure 1.0...

Tuesday, July 21, 2015

Visual Studio 2013 ~ C# and Microsoft Access | Add, Edit and Delete Functionality

I am refreshing my knowledge in C# and only to find out that the new Visual Studio is way too far from Visual Studio I used to work on during my college days. Using Visual Studio 2013, and MS Access 2010, I created a 'Manage Customer Details' form where I can ADD, UPDATE and DELETE customer profile in / from the database. Before I start my code snippets, here's the quick demo of the application. Demo: I'll gonna post some snippets later on this page in a fe...

Monday, July 20, 2015

UFT Datatables | Accessing Datatables

In this blog, I am assuming that you have a background in Recording using Unified Functional Test (UFT). If you don't have any, you can always roam around google search and try to understand some. First post I will be doing is about Data table. This is the collection of data you will be needing all throughout your automation testing and placed in a table form (exactly like excel sheet). Simple and straightforward: Figure 1.1 Getting the data...

Sunday, July 19, 2015

Welcome to my Blog!

This blog is all about some helpful code snippets when it comes to programming.  Just a disclaimer, I am not an expert of all programming languages, but I will be providing some snippets that is helpful in some ways. Just a head's up, the code snippets that I will be providing is more on Automation Scripting specifically on Unified Functional Testing (UFT). I will also give some snippets on other languages like Java, PHP, VBScripts...