VB Script Interview Questions
Questions Answers Views Company eMail

If a calulator having 3 buttons (of any number)in 3 of them one is not working properly due to which answer is wrong always. write a script to find out which button is not working properly ?

1530

How to write Descriptive programming in .VBS file i wrote this code but it is giving error.. Dim qtApp set qtApp=createobject("QuickTest.Application") qtApp.Launch qtApp.Visible=True Set objIE = CreateObject("InternetExplorer.Application") objIE.visible = True objIE.Navigate "www.gmail.com" browser("title:=gmail").title("title:=gmail")

2 6312

How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...

2876

what types of bugs will we find out in banking projects for automation testing?

Napier Healthcare, TCS,

1740

Whenever I use Wscript.Echo Qtp raising Run time error as 'Object required for Wscript' How I can create object for Wscript

1 7453

I want to import the sheet from the Excel to the Datatable using VB Script. I used the Syntax as 'Datatable.ImportSheet "Filename","SourceSheet","Destinat ionSheet" Ex: Datatable.ImportSheet "D:\Data1.xls","Sheet1","Global" Qtp producing run time error,How I can solve the problem

1 2559

Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).

1421

How to generate 3 digit random number?

IBM, Virtusa,

3 5338

Can any 1 modify the code whr in want to add\rename a excel sheet in qtp?

1 3184

a;;b;c;;;d in this string output is abcd will come how can we do that in vbscript in QTP testing?

2 4151

wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......

1468

wat is com(common object model)object for mozilla firefox??? if any knows the exact answer....plz rply me

2 3599

How to write VB Script for selecting a particular row in a WebTable?

Patni,

1 2707

Hi all..I have two values. a=20 ,b=30 I want to perform c= a+b and c= a*b using user define function.please anyone give the answer

1 1814

How to find arry size in qtp vb script

Cap Gemini,

2 10491


Post New VB Script Questions

Un-Answered Questions { VB Script }

Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?

3015


Sub link() Dim k As Integer Dim rand As Integer Dim URL As String Dim foldernum As Integer Dim folderstring As String Dim filenum As Integer Dim filestring As String k = 1 'for AC Numbers For i = 11 To 40 foldernum = 0 foldernum = 1000 + i folderstring = CStr(foldernum) folderstring = Mid(folderstring, 2, 3) folder = "ac" & folderstring 'folderstring = Sheets(2).Cells(i, 1) ' for Number of Random files For j = 1 To 10 rand = Int(Rnd * (200 - 1) + 1) filenum = 0 filenum = 1000 + rand filestring = CStr(filenum) filestring = Mid(filestring, 2, 3) 'URL = "http://ceobihar.nic.in/PSCDROM/ac" & folderstring & "/i" & folderstring & "0" & filestring & ".pdf" URL = "http://www.elections.tn.gov.in/pdfs/dt1/" & folder & "/" & folder & filestring & ".pdf" ' URL =http://www.wb.nic.in/wbeco/EROLLS/PDF/English/A001/a0010105 .pdf Cells(k, 1) = folderstring Cells(k, 2) = folder Cells(k, 3) = filestring Cells(k, 3) = URL k = k + 1 Next j Next i End Sub plz define it

2210


Could Anybody Please tell me What is the script for Find 3rd Largest element in the Array without using a SORT function int Find(int arr[], int size); Thanks in Advance..

1995


hi all, i had a question, that how to find out hiding a coloumn in a table i had a table having the following column names NAME DESCRIPTION CREATED TIME CREATED USER if i right clicked on a NAME column it will displays a menu having the same column names in a list like NAME DESCRIPTION CREATED TIME CREATED USER with check boxes.if i unched any check box, that column name should not be appear in the main table column names could anyone please solve this problem?

1528


Which loop is used in case of arrays in the vbscript language?

498






Which operator can be used to do an xor operation in vbscript?

658


How will you get a subset of a array in vbscript?

563


Why is it recommended to close the database connection every time after the work is completed?

478


Is vbscript language a case-sensitive language and what does it mean?

526


How to declare an array in vbscript?

649


Explain different types of segment?

541


What is vbscript language used for and which earlier language is it modeled upon?

505


Explain the extension .hta?

519


Hi, Can anyone please send me vb script examples to practice vb and also material to learn vb scripting in QTP? my email id : hareen_11@yahoo.com

1797


How to find the font in qtp. Scenario:After entering the username and passwd you will be navigate into the "welcome:Username" page.Now I want to extarct font for this message.

1722