Contributions
object doesn't support this property or method
Hello, This is weird for me, I'm working with vbscript in testcomplete and until a few hours ago my code was working (see below a snippet) but suddenly it prompted me an erro telling me that theobject doesn't support this property or method: 'DataPool.item'. The code is here: Function DataPoolfile() DataPool.FilePath = Project.Path + "TestData\\" 'Test data sheet path DataPool.FileName = Project.Variables.Filename 'Test data file name DataPool.SheetName = Project.Variables.Sheetname 'Test data sheet name DataPool.New() firstCommand = true prevCmd = "" Set objArrayList = CreateObject("System.Collections.ArrayList") While (not DataPool.EOF) If (DataPool.Item("Run") = "Yes") Then run = DataPool.Item("Run") sc = CDbl(DataPool.Item("Scenario #")) .... End If ... Wend Please, I need help!!!3.3KViews0likes4CommentsHow to get the XML response already formatted by the browser?
Hello Comunity, I'm having a problem related to the response rendered by IE (or any browser) and I hope you can help me out: I have this code for retrieving a response from a request executed. response = Aliases.WebAPIResultPage.WaitAliasChild("ResponsePage").innerText Being "ResponsePage" is an object mapped (NameMapping) with WebAPIResultPage Actually, the response is an XML response but it comes already formatted (see the dashes to collapse and expand) by the browser: - <SCHEDREMOTE XMLNS="HTTP://FOO.COM/WEBSERVICES/"> - <RESPONSE> - <RESOURCE> <FIELD RESID="733" /> <FIELD DES="JUST A FOOOOO" /> - <EQUIP> <FIELD STR1="" /> </EQUIP> - <RES_USER> <FIELD RESID="891" /> <FIELD USER1="" /> </RES_USER> - <RES_LINK> <FIELD RESID="460" /> <FIELD ISTRUCK="0" /> </RES_LINK> </RESOURCE> </RESPONSE> </SCHEDREMOTE> My question is, is there any way to get the XML (raw) only? The thing is that i want to parse the xml using: Set xmlDoc = Createobject("MSXML2.DOMDocument") xmlDoc.loadXML(response) but in this format I can't. Thanks in advance.Solved1.8KViews0likes4Comments- 7 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.9KViews0likes0Comments
Re: Re: Comparing JDBC results
Hello, This is the SQL statement I want to run before the deletion request. Select COUNT(*) as quantity from dbo.EXP where PID = Convert(numeric,:id) -> id is taken from a Property previously declared. After the deletion request, I would like to run the same sql statement and in order to compare the quantity and thus assert if the deletion were performed successfully. Thanks,7 years agoPlace ReadyAPI QuestionsReadyAPI Questions2KViews0likes2CommentsRe: Comparing JDBC results
Hello there, I'm having the same problem. In my case I need to create a JDBC Request to "count" the elements on a certain table of a DB, then I performed some deletions from the DB and later assert if the deletions were performed in the DB. How to store the "count" of elements on the first JDBC Request so then I can compare it with the second "count" JDBC Request (this is the way, in my case, I use to compare if records removed form the first JDBC Request). Any help please? Thanks in advanceSolved7 years agoPlace ReadyAPI QuestionsReadyAPI Questions2KViews0likes4Comments