Contributions
Re: How to create Mapped object Structure in JScript
Hik_de_boer03, Thank you for the reply . Property names would remain same in no but there values would not be static. For Ex : Name will not only have 2 values . it would increase. and there hard coding like new Property("name1", "0", "34"), would not help .1.9KViews0likes2CommentsHow to create Mapped object Structure in JScript
Hi All, I have below mentioned Object of Variablesinside TestValues which are initially uninitialezed var TestValues = {name: "", ID: "", BaseNo: ""}; . After reading the values from below xml <?xml version="1.0"?> <configurations> <Properties> <Property name="name1" ID="0" BaseNo="34"/> <Property name="name2" ID="1" BaseNo="35"/> <Property name="name3" ID="2" BaseNo="37"/> </Properties> </configurations> , I have to set the values agianst each variable insideTestValues but the problem is that, there should be only 1 variable for each value. For ex when i read the name from 1st property it is name1 , for 2nd it is name2. how can i have i variable storing more than 1 value. There is some concept of mapped object structure in Jscript but i dont know how to use. Please help if you knowSolved1.9KViews0likes6CommentsRe: reading xml using selectSingleNode()
Hi NisHera , Thanks for the reply.The function will get attribute name value (MarkXX_Gas_1.22_Fwd_Win7) using project variable . using that value select the configuration whose attribute name value is similiar to passed value and then read all other attribute values. after that read the child node Meters and its sub child and attribute values. I have to specifically use selectSingleNode().2.3KViews0likes0Commentsreading xml using selectSingleNode()
Hi All , How should i read the below xml using selectSingleNode().I have to take name as input i.econfiguration name="MarkXX_Gas_1.22_Fwd_Win7" as input and then read the values. The function should be able to read multiple tag names. <?xml version="1.0"?> <configurations> <configuration name="MarkXX_Gas_1.22_Fwd_Win7" OSName="Win7" OSServicePack="Service Pack 1" Windows64bit="True" OfficeVersion="2010" OfficeServicePack="SP1" UserAccountType="Domain" Locale="en-US" IEVersion="10.0.9200.17267"> <meters> <meter Name="Meter1" ProductType="0" DeviceNumber="3414" FlowDirection="1" CPUBdSwVer="1.22-Gas_Sp3pt02_Eval-20150521_0725 2015/05/21" IPAddress="10.129.194.184" ConnectionType="0" /> </meters> </configuration> </configurations>Solved2.3KViews0likes2CommentsHow should i get region and language name using GetLocaleInfo
Hi All Below codes gives error.I am trying to get language and region name from system Error "The requested information about locale could not be obtained" function GetLocaleName() { var intLCID = Win32API.GetUserDefaultLCID(); LOCALE_SNAME = intLCID; Log.Message(GetLocaleInfoEx(LOCALE_USER_DEFAULT, LOCALE_SNAME)); } How should i get region and language name ?Solved1.6KViews0likes1CommentHow to get MS Office version installed on the machine
Hi Team , How to get MS Office version (Not excel or word) installed on the machine using Jscript? var ProgramFiles = aqEnvironment.GetEnvironmentVariable("ProgramFiles", true); var MSOffFilePath = ProgramFiles +"\\Microsoft Office\\Office14\\EXCEL.EXE"; var Officeversion = aqFileSystem.GetFileInfo(MSOffFilePath).VersionInfo.FileMajorVersion; Log.Message(Officeversion);1.4KViews0likes1CommentRe: Parameterization of a “set of scripts”
Hi , Thanks iamraj09 for the reply. What i am looking for is that before my all 10 scripts run , there should be some method or mechanism where in i first check the OS , IE version etc on the system where these 10 scripts will run and if it satisfies the conditions , then the scripts should run otherwise not.1.1KViews0likes1CommentParameterization of a “set of scripts”
Hi , I need toParameterize set of scripts. For example , i have 10 scripts which needs to be run on win7 , MSOffice 2007 , and IE 10. All 3 conditions needs to be true before running the script. How should i do it in testcomplete with Jscript ?1.1KViews0likes3Comments