Why does not take a picture after Log.Picture()?
Hi There,
I followed the official doc for just taking a desktop picture, But after finish my script, there is no any picture on my disk or any information in Log panel, Is there anything that I was missing? Please let me know
My script is as below (use Javascript):
Log.Picture(Sys.Desktop.Picture())
Here is my Log panel:
Hi,
By analyzing your problem, I think you can use saving values in:
Design variable - with this solution you can save the value between test iterations.
Doc: https://support.smartbear.com/testcomplete/docs/testing-with/variables/collections/project-and-project-suite/index.htmlWrite in a variable in a script - if your test is called in one function, it will be easy to write the value in the variable.
Doc: https://stackoverflow.com/questions/19211768/saving-a-javascript-variable-for-later-usageUse excel file - save data in excel and read specific cells according to the test iteration.
Doc: https://support.smartbear.com/testcomplete/docs/testing-with/advanced/working-with-external-data-sources/excel/index.htmlDepending on which programming language you use, use random values to generate a variable value.
Example in JS: https://www.w3schools.com/jsref/jsref_random.asp.