Behavior of the JavaScript changes constantly

Discussion of the technology underlying the eValid solution.

Behavior of the JavaScript changes constantly

Postby PeteVJ » Thu May 19, 2016 10:46 am

Hey you guys!

I've got this page that runs a JavaScript when I click on a certain button and the behavior of the JavaScript program changes every time I run my test.

Any ideas on how I might overcome this problem?

Thanks in advance.
PeteVJ
 
Posts: 1
Joined: Thu May 19, 2016 10:43 am

Re: Behavior of the JavaScript changes constantly

Postby eValid » Fri May 20, 2016 11:19 am

PeteVJ wrote:Hey you guys!

I've got this page that runs a JavaScript when I click on a certain button and the behavior of the JavaScript program changes every time I run my test.

Any ideas on how I might overcome this problem?

Thanks in advance.


Good question PeteVJ.

Thanks for asking

Once you give control to a JavaScript program running in the browser, it can do a wide range of things, subject to the same-origin policy and some other privacy concerns.

Here is a standard page about JavaScript as it operates in a browser:

https://en.wikipedia.org/wiki/JavaScript

If your program is "non-deterministic" -- as you seem to be describing -- then there's little that a deterministic process such as test playback can do to help.

In other words, there won't be a simple solution to figuring out what a program does by reading the source -- no matter how hard you try.

How to debug in this case is going to have to be more down-to-earth and heuristic?

You have to study the particular program -- and you may need to print out the actual JavaScript to see what's going on.

Sorry, there's nothing eValid (or any other product) can do to help you figure out the program's behavior.

But you can use the ability to pause and resume, as described here:

http://www.e-valid.com/Products/Documen ... iming.html

What you ought to be looking for is some kind of a fixed behavior?

Beyond providing a way to step through the web page behavior, and providing a good method for examining the DOM with the PageMap facility, described below, there is little more that eValid can offer.

http://www.e-valid.com/Products/Documen ... p.gui.html

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


Return to Technology

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