Posts

Writing Recursive Functions

How to Write Recursive Functions A recursive procedure is one that calls itself. Example is as follows – The following procedure uses recursion to calculate the factorial of its original argument. Function factorial(ByVal n As Integer) As Integer If n <= 1 Then Return 1 Else Return factorial(n – 1) * n End If End Function

UNIX Commands in Nutshell

UNIX Command Summary There are MANY commands available for you in a UNIX shell account. A list of them follows (in no particular order). Remember, you can always read the manpage on each command for more information. ls …………….. show directory, in alphabetical order logout …………. logs off system mkdir ………….. make a directory rmdir ………….. remove directory (rm -r to delete folders with files) rm …………….. remove files cd …………….. change current directory man (command) …… shows help on a specific command talk (user) …….. pages user for chat – (user) is a email address write (user) ……. write a user on the local system (control-c to end) pico (filename) …. easy to use text editor to edit files pine …………… easy to use mailer more (file) …….. views a file, pausing every screenful sz …………….. send a file (to you) using zmodem rz …………….. recieve a file (to the unix system) using zmodem telnet (host) …… connect to another Internet site ftp (host) ……… connects to a FTP site...

Using Descriptive Programming(DP) In QTP

On recording any object using QTP, QTP adds the test object to the Object Repository. While running a test, QTP finds the object in the Object Repository and uses the stored test object’s description to identify the object in your application/website. Only after the object is found in the Object Repository, QTP can perform methods on those objects. We can also instruct QTP to perform methods on objects without referring to the Object Repository. This is possible with the help of Programmatic descriptions or descriptive programming. This implies that descriptive programming is very helpful if you want to perform an operation on an object that is not stored in Object Repository. Descriptive Programming is also useful to perform the same operation on several objects with certain matching properties e.g. suppose there are 8 check boxes on a web page with names as chk_1, chk_2 and so on. So it’s not a good idea to put these in an Object Repository. With the help of Descriptive Programming ...