Page 1 of 1

Help with my Functional Testing situation

PostPosted: Thu Jul 30, 2020 12:50 pm
by ErickP
Afternoon all.

Can I run my own JavaScript passage in eValid before I run my regular tests?

My little program does some critical things to a page that are needed to make the page "realistic" for the functional test sequence.

Any suggestions/solutions that I can use for my situation?

Thanks

Re: Help with my Functional Testing situation

PostPosted: Fri Jul 31, 2020 9:32 am
by eValid
ErickP wrote:Afternoon all.

Can I run my own JavaScript passage in eValid before I run my regular tests?

My little program does some critical things to a page that are needed to make the page "realistic" for the functional test sequence.

Any suggestions/solutions that I can use for my situation?

Thanks


That is an unusual questions, but it is understandable ErickP.

Here is how you call your own JavaScript passage:

CallJavaScript wid "function([argument [, argument]])" "frame_path"

Now, that "function" must already have been loaded into the page because otherwise, if the function is not found by the browser this command has no meaning and eValid will throw a JavaScript error flag.

So, you have to make sure your JavaScript is already there even if it is not invoked in normal operation of the page.

You would probably do this by adding it in at the server level and thus just carrying it along with the page download process.


-- eValid Support