We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More
This site is now read-only. You can still browse and search as usual. Learn More
Hi all,
Could someone please tell me how to pass ImageRepository name and or item from excel sheet.
e.g.
ImageRepository.name.item
or
passing both name and item for use in JavaScript.
Many Thanks.
AM.
Hi,
Try something like this:
var strItemFullName = 'Imagerepository.imageset.item';
var Button = eval(strItemFullName);
Button.Click;
Does this help?
Hi AlexKaras,
The use of eval() proven to be working before converting the passed parameter to a string.
Many Thanks,
Here's how you read data from an Excel file
https://support.smartbear.com/testcomplete/docs/testing-with/working-with-external-data-sources/excel/read.html
The repository name won't be any different than any other piece of data. You can either grab it directly from Excel in the script or you can read it into a variable from Excel and have your script access the variable.
Hi,
Try something like this:
var strItemFullName = 'Imagerepository.imageset.item';
var Button = eval(strItemFullName);
Button.Click;
Does this help?
Would the sections and examples in https://support.smartbear.com/testcomplete/docs/reference/project-objects/items/image-repository/index.html, help you?
Example