ContributionsMost RecentMost LikesSolutionsRe: How to read a JSON file Hi ishu, I am trying to use "eval" function. Initially fetch the Json file from bath and convert the file content to object. Then each element of the file can be used to fetch data from file. Let me attach the code spinet below which might be useful. //Get the path of JSon file and read the file// path = Project.Path var JSonFilepath = path+"Test Data\\"+"DisplayTab.json"; .....(DisplayTab.Json is my file name) //Reading the Text file// var data = aqFile.ReadWholeTextFile(JSonFilepath, aqFile.ctANSI); //Converting the Text file to a single object// var TestObj = eval("(" + data + ")") ......("TestObj" is entire Text file converted to single object) Now we have designed our Json file with our desired with nodes and sub nodes, we can easily access the each of it present in Json file using that "TestObj". Example: TestObj.Node.SubNode --> Will fetch that particular value. Hope you found this useful. Thanks Re: How to read a JSON file I am using JScript language and BDD framework. So I need to read a JSON file and compare the data from it with the another. So how to achieve this? Can you show an example for same it will be helpful. Thanks Re: Action is not taking place Yes we can connect. Can you send the part of code which passes but action does not take place? If you are using name-mapping technique the object on which you are doing the operation- did you add unique distinguishable properties to it? Re: Action is not taking place Hi, Have you tried executing these same steps manually? If by doing the right action(here click on new slide btn) and expected result should appear(new slide in PPT should add on) or any glitch is found? If no issues then we have to analyze the code, what log message comes after the click action is performed? what is the immediate step is following this action? Is double click or single click difference is there? Re: obj.FindChild takes too long time to search for the child obejct Hi, // obj.FindChild(....,1000,True) // I could see the depth=1000, is that much depth is required to do FindChild and locate the child object? I mean to say, the FindChild operation by itself is heavy and takes up time for execution. Hence calculated(to approximate extend) depth value has to be given for that function. One option is instead of taking the general parent object(Firefox browser page) you can go for the specific parent(nearest parent) under which your desired object/control is present as child object. This will narrow down the searching. If difficulty is there in doing so as sometime the particular part or control may not be spied, in that case you can go for the overall parent object do find child on that itself. Else you can go for "Extended find child method" also. Also, before FindChild, go for a implicit delay methods like wait methods to wait for browser page to load and all controls/objects to get appeared on UI. This will allow time for object browser in TestComplete to load all the parent- child objects associated with the process. Then go for FindChild that might help in locating the particular file without fail. Hope this helps! Cheers How to read a JSON file Hi experts, I wanted to read and work with JSON files. Is there best ways to read JSON files using TestComplete? I wanted to trigger the script to fetch the JSON file and do curtains operation by fetching the data from it. Plz suggest best ways to do so. TIA SolvedRe: Accessing tables, grids and trees These are the controls used by developers to create that tabular column list. Can you suggest a method to access Thanks Re: Fetching file Mr_BroAlexKaras Just add on to above; when I try to create a array and push the DTM versions(sorted ones) into it. wrong array is getting printed. I wanted array to be arr= [V.1.0.38,V.1.0.40,V.1.0.47,V.1.0.48] but the resultant array is coming as V.1.0.48 printed 4times! can you help me in fixing this? Thanks a lot! Re: Fetching file AlexKarasMr_Bro Thanks for your reply. Yes, I am using the same aqFileSystem related functions to handle the files. Now, is there any particular function to sort and acess aparticular file of my choice? With the above code I have written, I am able to sort the installer file names based on version and get the latest one(below logs) Now I wanted to collect this sorted file path in array and operate with it? Like from array of paths I need to fetch lastest and second latest version and further work with it. How to push these sorted file paths into a array and again select a particular one path from it? Plz do suggest a method for it! Thanks once again Fetching file Hi experts, I have to select a file from a folder to open it and do some operations on it. I need to do two things; 1. I wanted to fetch always the "latest added file" from the folder. 2. I also wanted to fetch the "second latest added file" from the folder. How do carry out these operations? With reference to the above image; I wanted to fetch the "latest version of the installer" (ie V1.0.48 according to the given folder) and also the "one version lesser to latest"(ie V1.0.47 according to the given folder). I wanted to fetch the latest and next latest files always even if "N" number of files are added. So can anyone guide some foolproof way to achieve this? Thanks a lot!!