Edit Zest script in Non Graphical way.

Skip to first unread message

Sushmita Priya

Apr 14, 2024, 6:32:47 AMApr 14
to ZAP User Group
Hello folks!
I am trying to record zest scripts with multiple APIs which have large responses. 
In script console I can see the following message: "Very large script (1,531,355 bytes). For performance reason, editor is disabled. Use an external editor."
But simultaneously in the script output panel, I can see "This is a graphical script that can only be edited via the Scripts tab on the left hand side."
I used Visual Studio code to edit it but the changes are not working when I run the zest script. 
Can anyone help me out here? How can I edit my scripts in this case? and make them work.

Any suggestion is appreciated. Thanks!

Simon Bennetts

Apr 17, 2024, 4:35:45 AMApr 17
to ZAP User Group

I think (without checking the code) that ZAP will be caching the script.
Right now you will probably need to reload ZAP in order to pick up any changes.
I think ZAP will automatically pick up changes made to non Zest scripts that are made by external tools.
We should support this for Zest, but its slightly more complicated as reloading Zest scripts takes more time, so we wouldnt necessarily want to do it on all changes.
But adding a manual option to relead Zest scripts makes sense to me.
Feel free to raise an feature request for this: https://github.com/zaproxy/zaproxy/issues/new/choose


Reply all
Reply to author
0 new messages