Contributions
Re: TestComplete10 performance is very slow
Hi.. I am having severe playback issues with Chrome as well. I am on the latest version of the Chrome patch as well as Test Complete. My scripts run quite zippy on IE but drag in Chrome. Has there been any progress with this issue/thread? It would be quite cumbersome for me to go back through 3000+ lines of code and add in query selectors and finds when I don't need them in IE. Thanks, Veronica2.6KViews1like0CommentsRetrieving data from WebService XML via XPath
Hi! I am generating data via our web services and need to retrieve data to pass into another web service call but I am having difficulties accessing that data. I have tried using a 'Find', 'FindAll', 'FindAllChildren', FindChildByXPath,and Find with XPath. So far, none of these methods have run successfully. I receive an 'Object doesn't support this property or method' error. I am trying to run the 'Find' directly against the XML. I am also having issues obtaining a particular Node. Regardless of the Node I request, it always returns the root Node. Snippet of code is entered below... Thanks for any help! I am stuck.. Call WebServices.CogneroContentImportService. GetUsersQuestionSetTree(userID) XML.GetUsersQuestionSetTree.Check WebServices.CogneroContentImportService Set Doc = Sys.OleObject("Msxml2.DOMDocument.6.0") Doc.async = False ' Load data from a file Call Doc.load("D:\\XML\GetUsersQuestionSetTree\GetUsersQuestionSetTree.xml") Set Nodes = Doc.selectNodes("//Soap/GetUsersQuestionSetTreeResponse") 'set your xpath variable xpath1 = ".//add[@nodeTypedValue = 'LogsDirectory']" 'execute the FindChildByXPath method and assign the object to LogsDirectory NOTE: THIS IS WHERE IS FAILS - OBJECT NOT SUPPORTED Set LogsDirectory = Doc.FindChildByXPath(xpath1, False) 'now that you have the node object get the value of the 'value' attribute sLogsDirectoryValue = LogsDirectory.GetAttribute("value", QuestionSetmetaScripts) Log.Message ("Result: " + sLogsDirectoryValue)1.8KViews0likes1CommentRe: Needs guidance to set up JavaScript within Scripts
Okay, that makes sense. When I add that file to my Project Suite it yells about the syntax of my code. I am not familiar enough with JS to fix it. I muddled my way through the first function; not entirely sure it is correct. If I attach the file, do you think you could take a look? I do not have much support from the Dev team here to help figure this out right now ... Thanks much! Veronica871Views0likes0CommentsNeeds guidance to set up JavaScript within Scripts
Good morning! I am having some difficulties in understanding the provided help document:Executing JavaScript. I need to run several JavaScript functions in order to perform much needed user actions and content verification on my tested application. However, I am not making much sense of the help document. I created my MyScriptFile.js and placed it in a Scripts folder within my Test Complete directory. Within that files are my 2 JavaScript functions. Now what do I do? :-) The help doc tells me to enter: res = pageObj.contentDocument.Script.functionName(param1, ..., paramN) So I have entered: res =Aliases.browser.pageCogneroTestGenerator.contentDocument.Script.GetIDOfRightPaneElement(0) My questions: 1. Should this be a 'Function' or a 'Sub' routine? 2. How do I let Test Complete know where my scripts file resides? 3. Can I just continuously add JS to this files as the need arises? 4. Can you please help me write my first successful method so that I can understand what the heck I am trying to do? :-D ** The JS is created to pull object information and pass it back to a variable that I will then use in another method. The 2nd JS function will perform a user action (dbl click). Thank you so much for your help. Please let me know if anything is unclear.1.8KViews0likes3CommentsRe: Tips for developing "advanced" framework and tests with Javascript
Hi there .. It sounds like I may be having a similiar problem with my JavaScript / framework scripts/files. A quick synoposis, we create online tests for students so that the Instructor may use them electronically as they see fit. Of course that is a very high level view, but I need to be able to edit questions within a test bank. Our ID's are dynamic. Actually everything in our system is dynamic, so my developer wrote me a couple lines of javaScript to help pull out the info I will need. My issue is trying to implement this in my scripts? I would appreciate any help. I have 2 functions. Do I create a .js file and place it in my TestComplete folder? Do I need to attach it to my Project? I keep reading that we call the function that is located on the 'Page' but this function does not appear within our script. It is an 'on the fly' item. I am really lost. So any help offered would be mucho appreciated! Example and what I 'think' I need to do (I am using VB ) editQuestion =Call Aliases.browser.pageCogneroTestGenerator.contentDocument.Script.function GetIDOfRightPaneElement(whichIndex) { var jArray = jQuery(".questionContentItem"); if (jArray.length > whichIndex) { return jArray[whichIndex].id; } else { return null; } } I pretty much know that isn't correct. I just don't know what in the heck I need to do with it. 1. Do I create the .js file with my 2 javaScript functions and then reference it within my TestComplete Script? 2. If so, how do I do that? I could not find any 'helper' code that showed me how to correctly reference these items. Thanks much and sorry for hijacking this forum issue.. :-)2.4KViews0likes0CommentsRe: IE11 settings so that only one Page("*") appears
Using a permanent URL is not a feasible solution for us. Our URL is very dynamic. Is there any headway with this issue? Also, I was not seeing this until today. I did something with my settings, trying to fix a different issue and now it is happening. I have no clue what I did!!!1.6KViews0likes0CommentsRe: Setting up Excel driver and using variables
I have read those articles but they are mostly geared towards Keyword testing which I am no longer doing. I want to script my tests now. I have my Function set up that does all the heavy lifting, inserting the data, etc.. and which contains the variables and then I have my Test that calls the Function. I am calling my Excel driver within this Test and set up the one 'placeholder' variable that gets passed in with my project variables. Example: Sub TrueFalseTest() Dim TrueFalse TrueFalse = "" Set Driver = DDT.ExcelDriver("C:\Users\server\TG_questionDataApril2014.xlsx", "TrueFalse", True) While Not Driver.EOF() Call Pub_TestGeneratorQuestions.Publisher_questionPanel1(questionTitle,questionStem,SelectAnswer) Driver.Next WEnd End Sub My variable for 'questionTitle' within the function looks like this: Call title.SetText(Project.Variables.TrueFalse.Value("questionTitle")) Should it just be: Call title.SetText(("questionTitle")) Thanks much!1.3KViews0likes0CommentsSetting up Excel driver and using variables
Hi! I am running into some difficulties setting up my new scripts with variables contained in my Excel worksheet. I am converting my Keyword tests into Scripts and need to pass in my values contained in the worksheet. Here is what I know so far. I need to set up the driver and provide the path to my spreadsheet. Do I just declare my variables as usual and then pass them in? Is that enough for Test Complete to link the two? I have attached a snippet of my script. I need to pass in 3 variables from my spreadsheet; questionTitle, questionStem and SelectAnswer. Is there anything I am missing? I have read through all of the provided help online and cannot find a good example of the Excel driver getting setup AND data being passed into a test. It always just shows it getting posted to a log which does me no good. Thank you so much for your help! PS: Also, how do I call my Project variables ? Some are stored in Excel spreadsheets, some are declared on the Project itself.2.6KViews0likes4CommentsAttempting to create New Project, same Name Map but scripts won't run
My current project is getting to be rather sizable & it is time to start moving thing out into their their own Projects, however, when I try to do so, either by recreating the scripts by hand or 'add current item', when I try to play them back none of the my previously mapped items are recognized. I can't even get it to recognize: Call Browsers.Item(btIExplorer).Navigate(testedURL) It says 'unable to find object SysBrowser(iexplore'). I am totally confused because my Name Mapping respository is a direct merge from the parent suite and those scripts run fine there. What checkbox did I not check? Thanks, Veronica1.5KViews0likes1Comment