Hi , I am new to VBscripting, My requirment is to write a
vbscript to read a row (which has coloumns like
Description, Code, date(DD/MM/YY), hours etc) and export
these feilds to a Website and then click on Submit
Automatically on that web page. This it should do for all
the Rows in that excel file. Any help is much appriciated

Thanks
Shalini

Answer Posted / pinki

Try this may work.
‘Invoke the your application, open the required page
Set objExcel = CreateObject("Excel.Application") '
Creates the Instance of Excel
objExcel.Workbooks.open “ Give the excel sheet
path" 'Opents the excel sheet from given location
objExcel.Visible = False
'***********Assigning the values to the variables
X = objExcel.ActiveSheet.UsedRange.Rows.count
For j = 1 to X
Desc = objExcel.ActiveSheet.Cells(j,1)
Code = objExcel.ActiveSheet.Cells(j,2)
Date = objExcel.ActiveSheet.Cells(j,2)
Hours = objExcel.ActiveSheet.Cells(j,2)
‘*********** Assign the values to Application variables
Browser().Page().WebEdit().Set Desc



‘ click on sumbit
objExcel.Workbooks.close

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by a Check Point in UFT? Also, explain the applicable Check Points.

884


Does any one worked on JIL Emulator , Testing with QTP(automation). Trail Version of QTP is not identifying the child objects of JIL emulator, Can any one help me out ,

1589


What test you perform mostly? Regression or retesting in your testing process?

782


what is key word driven frame work ? why it is called like that ? what is the diference between keyword driven and data driven frame work ?

1772


What phases are involved in testing an application in qtp?

740


How can i test an application like Google Earth.In my application data will be fetched from a oracle database based upon which graphs are generated..so these all are dynamic..how can i use qtp here..alongwith that how can i test the map generated by a satellite just like google earth..

1925


Key word driven framework

1896


Suppose I created one object as virtual object? That object is applicable to that test? Or all the tests?

759


How to perform cross platform testing and cross browser testing using qtp? Can you explain giving some example?

742


How to give a call to another action from one action?

837


How to write business scripts using object repository with different scenarios

1594


Explain different types of action in qtp?

791


what is defenetion of kiran can u tell me plz CVS, SVN

1770


Explain the concept of object repository and how QTP recognizes objects?

739


How many types of Automation frameworks are there in UFT? Describe them.

749