How to write dynamic value into testdata (internal)

is it possible to write dynamic value into test data. i.e… internal data

help me to solve my problem… Thanks

Please, describe your case in more detail. What do you mean by “internal data”?

for example i need to store current time using System.currentTimeMillis() / 1000 so i need to store these value into my Data files i.e. internal data

You need to write something to file? Use groovy file methods:
http://docs.groovy-lang.org/docs/groovy-1.7.3/html/groovy-jdk/java/io/File.html.

For example:

long currentTime = System.currentTimeMillis() / 1000
File result = new File("${System.getenv('HOME')}/path_to_desired_folder")
if (!result.exists()){
    result.createNewFile()
}
result.write("Current time is ${currentTime}")

is it possible to write value into specific cell of internal data …

1 Like

That’s why you should give us more details. So, you want to write to an excel file? Please, read this and see if it helps

i dont want excel data in katalon studio itself we have internal data so i m using internal data in Data files.

2 Likes