Can eValid execute tests from JavaScript

General discussion about eValid, its characteristis and applications.

Can eValid execute tests from JavaScript

Postby RJustman » Wed Jun 06, 2018 10:02 am

Hello.

I have this fragment of JavaScript that contains my test, and I want to know if eValid can execute it.

This is an issue i'm having and I can't seem to overcome this ... please help.

Thanks
RJustman
 
Posts: 1
Joined: Wed Jun 06, 2018 9:47 am

Re: Can eValid execute tests from JavaScript

Postby eValid » Thu Jun 07, 2018 10:51 am

RJustman wrote:Hello.

I have this fragment of JavaScript that contains my test, and I want to know if eValid can execute it.

This is an issue i'm having and I can't seem to overcome this ... please help.

Thanks


Running a JavaScript fragment is easy RJustman.

First, you have to make sure your JavaScript is "known" to the browser; you can do this in a variety of ways, but basically you have to declare the passage to your browser in some page.

Next, you need to know the name of the JavaScript method you want to run.

Then, you have this command in your eValid script:

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

where all of these parameters have their usual eValid meaning.

To remind you: "wid" is the window id,and that is "0" if you are in the topmost window (the parent window).

If you don't have frames to worry about you can leave that argument off; it will be assumed "" (empty).

Note that you can also pass argument values explicitly to the browser.

Final note: JavaScript is single threaded and if your JavaScript passage has an infinite loop you may get some strange outcomes.


-- eValid Support
eValid
 
Posts: 2390
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA


Return to General Solution Topics

Design Downloaded from free phpBB templates | free website templates | Free Web Buttons