Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 20990

How to Retrieve Data from Web Page in Tabular Format in TestComplete using VB Script

$
0
0

Hello There,

 

My team is testing data from the QlikView Application(A pivot table in the Application please see in the below attachment)

Path of applicationhttp://us-b.demo.qlik.com/QvAJAXZfc/opendoc.htm?document=qvdocs%2FItalian%20Schools%20Navigator.qvw&host=demo11&anonymous=true

 

Script used to get the data from WebPage(VB Script)

Sub Test2
Dim explorer
Dim btnStart
Dim browser
Set explorer = Aliases.explorer
Set btnStart = explorer.wndShell_TrayWnd.btnStart
btnStart.ClickButton
Call explorer.wndDV2ControlHost.DesktopSFTBarHost.SysListView32.ClickItem("Internet Explorer", 0)
Set browser = Aliases.browser
Call Browsers.Item(btIExplorer).Navigate("http://us-b.demo.qlik.com/QvAJAXZfc/opendoc.htm?document=qvdocs%2FItalian%20Schools%20Navigator.qvw&host=demo11&anonymous=true")


set vTextObject= Sys.Browser("iexplore").Page("http://us-b.demo.qlik.com/QvAJAXZfc/opendoc.htm?document=qvdocs%2FItalian%20Schools%20Navigator.qvw&host=demo11&anonymous=true").Panel("PageContainer").Panel("MainContainer").Panel("Document_36")
vQlikObject=vTextObject.contentText
log.Message "The text value is : " & vQlikObject
end sub

We are getting the output in the form of continous string.Instead we required the data in the tabular format in TestComplete

Please find the attachment for the output below.

 

The purpose of this output data from the web page needs to be compared with Excel file cell by cell

 

Could anyone please help how to get data in Tabular Format in TestComplete or other better way to obtain the output in proper format that can be compared with excel file.

 

 

PFA below


Viewing all articles
Browse latest Browse all 20990

Trending Articles