Copy link to clipboard
Copied
For example you write script with some UI and some user input.
You want to test if everything works right.
You can test script manually, but it is time consuming especially when your GUI is complicated and you have multiply cases to check.
Below is simple example:
#target photoshop
$.level = 1; // Debugging level, Level: 0 - No Break, 1 - Break, 2 - Immediate Break
var mainWindow = new Window("dialog", "Test buttons");
var buttonFoo = mainWindow.add("button", undefined, "foo");
var buttonBar = mainWindow.add("button", undefined, "bar");
buttonFoo.onClick = function(){
alert("Fooo!");
}
buttonBar.onClick = function(){
alert("Baar!");
}
mainWindow.show();
Here is gif in which I show what I want to do automatically:
Requirements:
I want to run test by one click.
The test need to be platform independent and it should run on all photoshop versions above 13.0 (CS6).
(If is it possible) The test should be independent from user's PS layout.
(If is it possible) It should not be important where buttons on UI's layout are located.
--------------------------------------------
Notes:
I know that photoshop is parsing code before running to find bugs, but this is not what I mean.
The test should mimic user behaviour (it's not important for me if I see results of test until some error or bug show up).
My system is Windows 10, but it would be nice if test could work on Mac also.
If you can answer question even partially I would be grateful.
Thanks in advance for any help.
Copy link to clipboard
Copied
Not possible
Copy link to clipboard
Copied
Thanks