Question

How to read data from JSON file & inject to runtime parameters ?

  • 8 November 2023
  • 5 replies
  • 103 views

Hi, 

I have to read, buffer and verify the date in GUI from the Json file. The file is in Json format and has multiple details about different user profile and other user information's. I have to read  the data from the  related to the user name, keeping user name/user email as constraint or unique key to read the other  user data from file to verify in gui. Please share your thoughts and experience working with json file validation.

Thank you,

Pavithra


5 replies

Userlevel 7
Badge +2

@Shabareesh Padma is it something you could help with? 

Hi, Could you able to help on this scenario? I tried scanning the JSON file and verifying the text with the scanned module. But that is also not working, giving error like “JsonObject 'RootObject' was not found.”

 

Badge

Hi @PavithraKarthik ,

Looks like you’re on the right path! The error you’re receiving is due to the “Filepath” specified in the “Open/Create JSON File” Teststep not being found.

Please make sure that the file in your Filepath is accessible to you and that the name is correct. One way to double check your path and file name is accurate is to copy and paste the Value in the Filepath teststep value into your Windows File Explorer. The JSON file should open.

Hi @v.perez, Though my filepath is correct also its throwing the same error. Can you please help me to resolve this issue?

 

 

Badge

Hi @v.perez, Though my filepath is correct also its throwing the same error. Can you please help me to resolve this issue?

 

 

Hello @Skanda - Could you share a screenshot, similar to the original poster? If you want to start a new thread and tag me in it, that would work, too.

Reply