Thursday, August 21, 2008

About Warnings Vs. Errors

Many eValid users don't understand what Warning messages mean. Here's a quick rundown:
  • If you are using the Playback Data Dialog, you'll only see a Green Screen when the playback runs to completion without issuing any playback flags at all, i.e. no Warning, Error, Timeout, Alarm, or Failure flags.
  • You'll see a Red screen on any Error, Timeout, Alarm or Failure flags.
  • You'll see a Yellow screen when there are any Warning flags. The most common reason for a Yellow screen is that the Adaptive Playback system had to adjust the playback behavior to overcome minor changes (regressions) in the web page.

Here's a full explanation of eValid's Error Reporting Process. The key notion here is this: Warnings aren't Errors. Unless they are.

Thursday, August 14, 2008

Conversation With a Test Manager (Part I: The Basics)

A while ago we had a long conversation with a senior test manager at a big company about eValid, about eValid's technology, and about how this might all play out in his environment of tester/programmers. It was quite a long conversation, and we didn't make a recording (only notes), but here are some of the main issues he raised and how eValid answers them.

But eValid Only Runs On Windows, And Only On IE...
Yes, that's true right now, but eValid technology is currently being implemented in the FireFox build tree, using the current product as the design base. In the meantime, eValid already can "set user agent string" so that it can pretend to be ANY browser. We even have a fully worked
Illustration of User Agent String Modification.


But, Hey, eValid's Scripting Language is Non-Standard...
Actually, the eValid script language is more an automatically generated "command language" than it is a pure scripting (programming) language. We worked up a view of the eValid script language as a abstraction that implements a user controlled browser. The Abstract Model of eValid: Script Language View is the result. All of the eValid commands easily map into simple function calls (method invocations), following the internal Script Principles description.

But We Are Used to Writing Very Complex Testing Programs...
For applications where it is required, the EPI (eValid Programmatic Interface) provides users with full programming language support. The EPI feature is currently available for C++; versions for Java, VB, and PERL are being implemented.

Do You Expect Us To Guess the Properties of Page Elements...
Not at all. Access to DOM objects and all their detailed properties is done with the PageMap feature. Information from the PageMap display is bi-directional: you can click on the tree and/or click on the page, and you see the DOM specifics or page elements immediately.

So much for eValid technology and some of the main features. In Part II we'll look at the issues surrounding eValid's use of the "record/play" paradigm.

Monday, August 11, 2008

Control Mode Transition Diagram

During a test recording eValid can be in a number of states, and the current state affects how user actions are recorded in the script. The Control Mode Diagram indicates how these modes interact. Here is a quick summary of the available control mode toggles:

* F11: Absolute clicks

* Ctrl-F11: Absolute mouseovers

* Alt-F11: Element mouseovers

* F12: Application Mode

* Ctrl-F12: Desktop Mode

In practice when you are making a recording you may need to toggle into and out of these modes based on what you see eValid recording in the script window. It's a good bet that if you take an action and nothing happens in the script window that you will either (a) need to use one of the above-defined options or (b) mark that part of your script as needing manual modification.

One way or the other, you can always arrive at a script that plays back reliably. 99.99% of the time that's just by recording "from life".

Saturday, August 9, 2008

EPI C++ Example Programs

We have developed some simple examples that show off how eValid's Programmatic Interface (EPI) works.

Example #1: This very short example involves just a few evalid commands, an InitLink and a GotoLink. It's main purpose is to illustrate how the EPI interface is structured from the programmers' point of view. You can see both the CPP program and the corresponding non-EPI eValid script for comparison.

Example #2: Similar to the above, this example also is 1:1 with a corresponding eValid script. This script involves running an IndexFind command that identifies [to an internal variable] a particular field. The same command in the EPI interface performs the same way but in this case the actual index value is returned into the CPP program. That index is available to be used for other purposes in the CPP code.

Example #3: Here is a CPP program that performs a particular kind of search that can only be done easily with regular eValid command sequences of some complexity. The program uses a search engine to search for a particular search term, and then computes [by iterating and counting] the first search-results page that includes both the searched-for string and a target URL.

Example #4: Here there is a regular recorded eValid script that does a number of different kinds of things, and the EPI CPP program which duplicates the script actions exactly.

Example #5: The program in this example does not have a direct eValid script equivalent. The program navigates to a user-specified URL and then, within that page, finds the specific index of the [first] element in that page for which a specified attribute NAME has a specified VALUE. This read is done from the DOM of the page as it currently exists, which may or may not be what was sent down from the server, depending on what kind of AJAX-type operations were performed on it.

Example #6: The program in this example does not have a direct eValid script equivalent. Similar to Example #5, this program changes the value of attribute NAME at a specified index on the page to the specified VALUE. This update action is done to the DOM of the page as it currently exists, without permission of the browser or the server. This is a powerful feature and user caution is advised.

The bottom line for this set of examples is this: EPI for C++/CPP is available today and lets you do tests in an efficient and powerful way.

Monday, August 4, 2008

User Agent String Modification

We get a lot of questions about where eValid stands in relation to implementation on non-IE browsers, and in particular, when we'll have a Firefox version available. While we're not quite ready to announce any dates on that, you can rest assured that the Firefox version is on the product roadmap!

In the meantime, what can eValid offer to someone who wants to see if a particular application works (or perhaps equally as important, doesn't work) on a particular browser. It turns out that eValid has this nifty "SetUserAgent" command that may be helpful in that kind of testing.

The SetUserAgent command lets eValid "pretend" to be any browser you wish it to be, during a particular test session. This feature can be used to validate server behavior that involves alternative responses based on browser type (including, as the example will illustrate, denial of support to specific browsers). The User Agent string manipulation feature is also available at the command line interface.

Here is the Illustration of User Agent String Modification example. Let us know how you like it?

Wednesday, July 30, 2008

10th IEEE International Symposium on Web Site Evolution

This IEEE symposium WSE 2008, 3-4 October 2008, Beijing, China. (WSE 2008 is co-located with the 24th IEEE International Conference on Software Maintenance.) The paper and presentation schedule appears to be very strong, including special presentations by Scott Tilley ("Ten Years of Web Site Evolution") and two papers (one in each conference) by Harry Sneed, the noted German software engineering authority.

Sunday, July 27, 2008

Demonstration Yahoo User Interface (YUI) Application

You've probably heard of GWT. But have you heard of YUI?

YUI, the Yahoo User Interface, is a collection of very powerful JavaScript libraries and "widgets" that offer a web developer -- and a an AJAX application developer -- a very powerful collection of ready-to-use objects and interfaces. YUI is widely used, as evidenced by this Yahoo! User Interface Library: Sites Powerd by YUI page.

eValid works well with these sites because the YUI approach is pure-JavaScript all the way. We worked up an example YUI (Yahoo User Interface) Demonstration Script to illustrate how this works. The example handles making a reservation on the SouthWest Airlines website.

This example shows that eValid handles YUI-built applications and also illustrates use of eValid's IndexMotion commands and internal timer commands to create a script that could serve well in functional testing, regression test, and monitoring test roles.