How to report HTML in test results?

1 Star2 Stars3 Stars4 Stars5 Stars (4)
Loading ... Loading ...

HTML gives a variety of ways to represent the information in Reports. The native QTP reporting does not support any direct method of reporting HTML text. There are certain workarounds that can be used to report HTML text
Method 1
This using the Reporter.ReportEvent with few special tags in the text being reported. The below code demonstrated [...]

Register or Login to read the full article...

Converting HTML Text to Plain Text

1 Star2 Stars3 Stars4 Stars5 Stars (2)
Loading ... Loading ...

HTML and XML are very common entities in the testing/automation world. At time we are required to convert the HTML/XML to a Plain text version. Example of such a conversion can be seen below

<HTML><BODY><FONT color="red">Click on the Login link</FONT></BODY></HTML>

The converted text for about HTML would be “Click on the Login link”. One example of such [...]

Register or Login to read the full article...

How to set text in a WebElement or Frame?

1 Star2 Stars3 Stars4 Stars5 Stars (3)
Loading ... Loading ...

HTML and JavaScript is a powerful combo for generating advanced controls for web. WYSIWYG editors are certainly one of them. But WYSIWYG editor are not implemented as general INPUT tag controls on a web page. Demo page for TinyMCE a WYSIWYG editor can be found here.
Trying to record on such editor will usually not record [...]

Register or Login to read the full article...

How to validate input character set accepted by a textbox?

1 Star2 Stars3 Stars4 Stars5 Stars (4)
Loading ... Loading ...

When testing a field in a Web application, some of the common validations required are listed below

Validate the maximum length of data that can be inputed
Validate custom character set accepted
Validate only numeric values can be entered
Validate only alphanumeric can be entered

These validation can be tricky to perform because of the difference between how a user [...]

Register or Login to read the full article...

  1. Suscribe to Email

    Enter your email address:

    Delivered by FeedBurner

  2. Most Viewed


  3. Sitemap

    open all | close all
  4. Most Rated

  5. Translator

    English flagItalian flagKorean flagChinese (Simplified) flagPortuguese flagGerman flagFrench flagSpanish flagJapanese flagArabic flagRussian flagGreek flagDutch flagBulgarian flagCzech flag
    Croat flagDanish flagFinnish flagHindi flagPolish flagRumanian flagSwedish flagNorwegian flagCatalan flagFilipino flagHebrew flagIndonesian flagLatvian flagLithuanian flagSerbian flag
    Slovak flagSlovenian flagUkrainian flagVietnamese flag           
    By N2H

Your Ad Here