ArticleslgStudy

computer science

WET Web Tester

WET Web Tester is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand WET Web Tester rather than just read about it. In short: WET Web Tester is a web testing tool that drives an IE browser directly, so the automated testing done is equivalent to how a user would drive the web pages. The tool allows a user to perform all the operations required for testing web applications – like automatically clicking a link, entering text in a text field, clicking a button, etc.

Key takeaways

  • WET Web Tester belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect WET Web Tester to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of WET Web Tester from memory before moving on to harder problems.

Reference excerpt

WET Web Tester is a web testing tool that drives an IE browser directly, so the automated testing done is equivalent to how a user would drive the web pages. The tool allows a user to perform all the operations required for testing web applications – like automatically clicking a link, entering text in a text field, clicking a button, etc. One may also perform various checks as a part of the testing process by using Checkpoints. The latest version of WET is 1.0.0. WET sits on top of Watir, an automated test tool which uses the Ruby scripting language. WET retains all the features that Watir has and adds many usability related functionalities, such as data table support, object depot (aka object repository) and inbuilt HTML reporting.

History WET started off as an Extension Toolkit to Watir, a framework for Web testing, released as an opensource product and called it as WET (Watir Extension Toolkit).

Technical details

Working Principle A UI Test automation is conventionally done by either using a record and playback technique or by scripting completely.

In the record-playback technique, the tool automatically captures the events generated by the tester's actions and converts them to test scripts. These scripts can then be played back subsequently. While the record and playback technique allows testers to quickly create tests, experienced testers tend to detest using this approach due to the reliability and maintainability problem posed by these. The scripting technique relies on an experienced tester writing test scripts from scratch. Experienced test automation engineers follow a complete software engineer process and treat the test automation effort as another development effort. While this technique offers the advantages of a well maintainable and reliable code, it suffers from certain drawbacks like requiring a greater experience pool, a larger budget, etc. The third technique is a middle solution that offers some of the conveniences of recorders while retaining the complete scripting power. WET has adopted this technique, called as the Proxied UI technique for test automation. Using this methodology, a tester instructs an IE browser (using some sort of a wizard) to perform various steps like clicking a link, setting text in a textfield, selecting a list box, etc. The tool then converts these instructions to test scripts. Unlike the recorders, where scripts are generated by the tool automatically based on the actions that the user performed on the actual browser, in this case scripts are created only when the tester asks the tool to do so. This by itself increases the accuracy of the generated scripts. Using these scripts as the baseline, a tester can increase the test coverage by writing scripts to suit his application under test. Be it a total scripting, record and playback or the Proxied UI solution, each comes with its own benefits and liabilities. One advantage of the Proxied UI technique is that it gives control to the tester to decide how much of script generation is to be used vs. how much of hand written scripts. This is a decision that needs to be taken based on the application under test and the test coverage required. In a good project, there should be a proper mix between these techniques so that the benefits of each technique can be availed.

Features The following are the important features of WET:

WET UI – Preliminary Script development can be done using the WET UI which is easy to use. Using the WET UI, a tester can create Test Definitions, Object Repositories and the first draft of the test scripts. Scripting using Ruby – WET uses Ruby, an object oriented scripting language, which in turn gives WET a powerful scripting ability Object depot – The Object depot (aka Object Repository) allows a tester to map all the application's objects into centralized repositories. This helps in a higher maintainability of scripts. Object identification using multiple parameters – Many web pages are designed in such a way that the same page has elements with similar attributes – For example, there may be text fields with the label 'name' – one may be for the User's name while the other may be for the Developer's name. WET allows a tester to identify even these kind of objects by letting to search for objects using multiple parameters. 'Test definitions' to define tests – The structure and flow of a WET test is controlled by a test definitions file. This flow closely mimics the regular manual testing process. Slick HTML results – After the tests are completed, the results are printed out in neat HTML Format Integrated Data table support – Testers can write data-driven tests by using the Integrated data table support. Data tables can either be as Excel files or XML format. Popup handling – WET handles Win32 popups quite reliably.

Limitations The following are some shortcomings in WET:

Supports only the IE browser. Cannot be used for compatibility testing. The Simulated browser view of WET doesn't work accurately for a complex pages. For these sorts of pages, one has to view objects in a tree view only. No integration with SCM / bug tracking tools Does not have support for keyword driven tests

See also Lightweight Software Test Automation Ruby (programming language) Test automation Test-driven development iMacros Watir

References

External links Home page of WET Archived 2007-06-13 at the Wayback Machine Rubyforge Homepage for Watir Bret Pettichord' review about WET

Worked examples

Example 1 — a first encounter with WET Web Tester

Start with the simplest possible case. Write down what WET Web Tester claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to WET Web Tester before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about WET Web Tester ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of WET Web Tester

In research
WET Web Tester appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses WET Web Tester in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
WET Web Tester is common in secondary-school and first-year university syllabi. It links to neighbouring topics Graphical user interface testing, Web development software, so understanding it makes those chapters shorter.
In everyday life
Look for WET Web Tester outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “WET Web Tester” →

How to study WET Web Tester in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what WET Web Tester means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain WET Web Tester out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is WET Web Tester in simple terms?

WET Web Tester is a web testing tool that drives an IE browser directly, so the automated testing done is equivalent to how a user would drive the web pages. The tool allows a user to perform all the operations required for testing web applications – like automatically clicking a link, entering tex…

Why does WET Web Tester matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study WET Web Tester?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on WET Web Tester.

Tags

  • Graphical user interface testing
  • Web development software

Keep exploring