Topic :: VB Script





VB Script Interview Questions
Questions Answers Views Company eMail

Like OPTION EXPLICIT statement what are the other statements used in vbscript and their usage. Please post me all the statements please.

Accenture,

1621

write a vbscript for traffic signal

1 4770

I wrote the vbscript code on notepad i was geeting run time error "object required line 1" my code is set usernameobj=Descriptive.Create() usernameobj( "name").value="Username" set passwordobj=Descriptive.Create() passwordobj("name").value="password" set signinobj=Descriptive.Create() signin("name").value="sigin" browser("gmail").page("gmail").WebEdit("usernameobj").set ("enter username") Browser("gmail").Page("gmail").WebEdit("passwordobj").Setsec ure.Crypt.Encrypt("entr password") browser("gmail").page("gmail").WebButton("siginobj").click pls tell me whats wrong

1 3876

how to write vb script code for login gmail page by using notepad and how to run script in notepad

1 15897

write the vb script for call to new action in qtp?

1861

How to take screen shot of desktop by using vb script code or is there any method?

1 2995

I used the below code to open QTP through VBscript?But i can unable to Invoke QTP...PLZ help me with the correct code to invoke QTP through VBS with description of the code aswell. Dim qtApp 'As QuickTest.Application 'Declare the Application object variable Dim qtTest 'As QuickTest.Test 'Declare a Test object variable Dim qtResultsOpt 'Declare a Run Results Options object variable Set qtApp = CreateObject("QuickTest.Application") 'Create the Application object qtApp.Launch 'Start QuickTest qtApp.Visible = False 'Make the QuickTest application visible qtApp.Open "C:\form", True 'Open the test in read-only mode 'set run settings for the test Set qtTest = qtApp.Test qtTest.Run 'Run the test 'WScript.StdOut.Write "Status is: " & qtTest.LastRunResults.Status 'Check the results of the test run qtTest.Close 'Close the test qtApp.quit 'Close QuickTest Pro Set qtResultsOpt = Nothing 'Release the Run Results Options object Set qtTest = Nothing 'Release the Test object Set qtApp = Nothing 'Release the Application object

ADITI,

2422

How to invoke QTP through VBscript?Send me full code along with description of the code.Thanks in Advance

Capco,

1 3003

RECENTLY I PLACED IN QTP..HOW TO IMPROVE VB SCRIPTS KNOWLEDGE? IAM STRUGGING TO WRITE THE AUTOMATION SCRIPTS? ANY BODY TELL HOW TO IMPROVE QTP SCRIPT SKILLS?

2181

WHAT IS THE DIFFERENCE BETWEEN QTP SCRIPT AND VB SCRIPT? HOW MUCH PERCENTAGE WE USE IN QTP SCRIPT REAL TIME AND HOW MUCH PERCEN OF VB SCRIPT,,,,,,,

1504

How to Convert Hex color code to color name in VB Script?

3934

Q) Write VBscript code along with QTPscript code in QTP tool for below scenario 1. Launch yahoo site(i know) 2. Do loogin(i know) 3.Click inbox link(i know) 4.Go to every page of mail box and count no.of read mails and no.of unread mails(i know) 5.Store page numbers, read mail count and unread mail count in a new excel file sheet 6.Create 10 types of graphs on that data 7.Do logout and close site(i know) 8.Save new excel files with graph

2037

Hai this is sheik, i want to learn VB scripts for web application pls guide me what are all basic things need to know to learn VB scripts in web application.

1432

how to check URL using QTP? write vb script with descriptive programm only?

Syntel,

1 5614

what does create object actually do when you call it in vbscript?

Cap Gemini,

1 2665




Un-Answered Questions { VB Script }

Hello Friends , I am the new joinner of this website. I am working with Sapient ,Gurgoan I would like to ask few qurries regarding the QTP Tool of (Testing) Currently working on QTP Tool . I would like to no learn VB Script can u name some Books which i get in market. And a small issue in QTP I had 2 users right i have to login and send the document from this user to second user right. when i am send this doc some contendId number generates right. now i am loging into second user and i have to search for that contentId right i found it now i dont want to accept the document so i had an opption of check out ok i have to click on check out my QTP Code is like this Browser(" ").Page(" ").WebTable(" ").ChildItem (3,5,"Image",0).click Browser(" ").Page(" ").Link("ChecK Out").Click i new this code is perfectly right but when i am run the script i have to click on that particular contentId and click on check out but now the Problem is started the error is the document has been already checked out remeber every time my content id changes means it is the new contentId which is not been used atleast once Please help me out in this issue i am in big trouble

2028


wht type of User defined functions or Java Releated functions do we write in VB scripting

1828


wht type of User defined functions or Java Releated functions Do we write in VB scripting

1378


I need to get some data from data base and store this (retrieved) data in a excel sheet using VB script in QTP9.0 I have created connection for data base I have created as excels sheet by using Set XL=CreateObject("Excel.Application") XLworksheet.cells(1,1).value= rs.fields.item("<>") I have taken a for loop and changed the cells values (1 as i and another 1 as j) But still I am not able to get Plz kindly tell me know this . It is very urgent

1771


I want to know what are QTP functons and what are VB script functions. What is the difference between them.When we have to use these functions.

1303






Hellow friends, I am learning QTP,but here problem is VB script. please guide me how to learn VB script w.r.t QTP and if you know any books tell me or if you have any materials or any use full material or any else w.r.t QTP please post me p.p.sekhar

1965


explain how to write vb script in qtp?when will you write own script?

1857


write a script for allinterview-submit Question first we've to select Choose Category,second select Sub- Category(Which is comes in to runtime)third select Question Type.for that give some descriptive and vb script

1363


how to write codings in QTP using vb script. please help me. i am new to QTP. it is easy or very much tough. please tell me

12892


i am having some basic knowledge in c and VB 6.0. i qtp i want to know how to write the codings. by recording it is generating lot of codings. for example i want to test the text box. senerio is text box should not accept alphabets if it accept alphabets we should return fail status if it get number we should return pass status. how to write coding in vb script please help me

1797


if u ve resrevation for train and u get a number supose 1234xxxokie.after sucessul entering all required fields. now u put that number in search and want to chk wether these ar same or not if both ar same then its okie otherwise test fail.what would be the vb script code for it to compare these two values of different page.

1442


What are the technics follow in writing VB script?

1532


hou can we use vb script in qtp could u tell me breafly

1737


what is the dictionary objects in QTP? and what is method of vb script using virtual object wizard........

1547


give me any information abou vb script books learn quckly

1657