Contributions
Re: how to read and validate json file using testcomplete
Hi i have two json files with me and i want to compare specific value in the files. example: file1 {"employess":[{"ID":"1234","Details":[{"Name":"Ravi","Age":"30","Rank":"11"}]}, [{"ID":"1235","Details":[{"Name":"Kiran","Age":"35","Rank":"1"}]}, [{"ID":"1233","Details":[{"Name":"Rani","Age":"25","Rank":"21"}]} file2 {"employess":[{"ID":"1234","Details":[{"Name":"Ravi","Age":"30","Rank":"11"}]}, [{"ID":"1235","Details":[{"Name":"Krisha","Age":"35","Rank":"1"}]}, [{"ID":"1233","Details":[{"Name":"Rani","Age":"25","Rank":"21"}]} i want to validate the data using javascript in testcomplete like both files having same ID :1235 but the "Name" is different any solution please?12 months agoPlace TestComplete QuestionsTestComplete Questions709Views0likes1CommentGetting an access is denied while deleting the file from the folder in c drive using testcomeplete
function deleteFile(){ aqFileSystem.DeleteFile("C:\\Program Files (x86)\\testing\\delete\\new.txt") } details of the logs: Access is denied. Path: C:\Program Files (x86)\testing\delete\new.txt Test log message: An error occurred while deleting a file(folder) while deleting manually there is pop up showing on the window (user Account control): Do you want to allow this app to make changes. If i click yes it will delete the file but i want to do it using the TestComplete. Is it possible to do that? Note: when Test complete is executed in admin mode file got deleted without error but i want to delete the file without changing the Test complete to admin. Any suggestions please?12 months agoPlace TestComplete QuestionsTestComplete Questions1.2KViews0likes19CommentsRe: Getting an access is denied while deleting the file from the folder in c drive using testcomeplete
i am getting access is denied for the file to be deleted . when i explore i saw some one is added extra parameter (true) to the code . I have tried it on the file method12 months agoPlace TestComplete QuestionsTestComplete Questions605Views0likes0Comments