Month: September 2014

How to disable Right Click, using Angular JS?

September 23, 2014

Requirement:- We need to disable Right Click on links in our Angular JS Application? Context-Menu default behaviour Solution:-We wrote a directive to override the default behaviour of “Context Menu”Further we can use this directive to bind specific action on right click, using the contextmenu event.The contextmenu event fires when the user calls the context menu by right-clicking […]

Read More

How to Encyrpt and Decrypt Password in UFT?

September 18, 2014

 Requirement:-We don’t want to share our application(say Oracle database) login password , but rather encrypt it and while using the SQL query we need it to be decrypted at runtime.Solution:-Firstly we will Encrypt the password and then decrypt it.Encryption:-Approach 1:-Using Crypt utlity Object. Method used :- Encrypt  Syntax Code:- Code Example Approach 2:- Using Password Encoder (Tool […]

Read More

Various methodologies to Kill running Process in Task Manager.

September 15, 2014

Requirement:-Identify the running process on system and kill the process using Image Name(Running Instance in Task Manager). Solution:- Approach 1:- Without using UFT and we will simply create a .VBS file on the system and Run it. A. Microsoft Windows Script Host (WSH). A.1.We are using “Run” Command to achieve our requirement. ‘*******************************************Sub***************************************************’Function Name:- fn_KillMe’Function Description:- […]

Read More

How to download a file from ALM in UFT using OTA?

September 9, 2014

Requirement:-How we can download a give file from ALM (“Test Resources” Tab) using OTA? Test Resources Tab Solution:-We will utilize “QCUtil” , a utility object available in UFT, to leverage the methods and properties of OTA(Open Test Architecture) for downloading the user given file.Logic:-Our approach is to search a given file in “Test Resources” tab, […]

Read More

How to make Password field visible to user in Angular JS?

September 8, 2014

From long back we were planning to share our knowledge on the emerging technologies in the world. To quench your thirst we are launching our first post on Angular JS pragmatic scenarios.Hope your feedback and suggestions will motivate us to share more with the technology lovers. Requirement:- How a user can check the password entered in […]

Read More

How to log a Bug in ALM using OTA?

September 2, 2014

Requirement: – Logging Bug in ALM/QC programmatically, without any manual intervention. Solution: – We will utilize the capabilities of OTA (Open Test Architecture) of ALM to log a Bug. Approach: – Key is “TDConnection object” which is the entry point for using OTA; with this object we can access most of the functionalities of QC/ALM. […]

Read More