Accessing c# data in sikuli script

Asked by Betty on 2018-10-02

Hi.

We have written sikuli scripts in IDE to automate testing for web application we created.

We are calling the sikuli scripts from our C# code (and its working fine till this). Now we are in a situation where we generated random data in C# code. I want to use this random data's(json data) in the sikuli script to insert these data wherever necessary in the web application.

I know it can be done by saving this data(s) in file and accessing from it.

Is there any other way to access this data (json data) generated in c# to use in sikuli script?

Thanks in Advance!

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
Betty
Solved:
2018-10-03
Last query:
2018-10-03
Last reply:
2018-10-02
Dillon (dillonm197) said : #1

Couple possible solutions.

- Pass the json data as a long string parameter to sikuli.

- Create a temporary file and store the json data inside. Pass the path of the temp file as a parameter to sikuli and then access the file in your scripts. Delete it after the script ends.

Betty (bettyjames) said : #2

Thanks Dillon. :-)