Posts

Write number pattern programs in VBScript

For i = 1 to 10      Vishwa= Vishwa & i      Print Vishwa Next OutPut 1 12 123 1234 12345 123456 1234567 12345678 123456789 12345678910 For i = 5  To 1  Step -1      For j = 1  To i          Vishwa= Vishwa & j      Next      Print Vishwa      Vishwa =  "" Next OutPut 12345 1234 123 12 1

Reverse a string without using StrReverse

MyStr = inputbox("We Set Science in motion to create a better world") nCnt = Len(MyStr) For i = 1 to nCnt RevStr = Mid(MyStr,i,1)&RevStr Next Msgbox RevStr

UFT(QTP) difference between Action0 and Action 1|QTP script contains two sub folders “Action 0” and “Action1” by default , Why ?

Image
QTP script contains two sub folders “Action 0” and “Action1” by default , Why ? |UFT(QTP) difference between Action0 and  Action 1 By default each QTP script contains two sub folders “ Action 0 ” and “ Action1 ”. If we increase the number of actions then the number of the subfolders will increase accordingly. However please note that changing the name of action will not result into change of the sub folder names. Following is the directory structure: 1111. Action 0 :  Only Script.mts file is useful in this folder. This file contains the call to the actions and the no of iterations on which the action has to iterate. We can also add code here. 2. Action 1: a. Snapshots : This folder contains the snapshot of the application  taken during recording. . It contains the ‘HTML, XML & PNG files b. Objectrepository.bdb ( BDB = Berkeley Data base, an oracle product):  This is the local object repository of the action c. Resource.mtr :  This is a binary file