Strings

Converting HTML Text to Plain Text

1 Star2 Stars3 Stars4 Stars5 Stars (4)
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...

Have questions related to this article? Want to request a new article? Use our forums to post your questions


Viewed 474 times

Working with double quotes inside strings

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

Strings in VBScript are represented by enclosing the string inside starting and ending double quotes as shown below
strText = “Tarun Lalwani”
But to represent “Tarun Lalwani” (including the quotes) below code won’t work because of the syntax error
strText = “”Tarun Lalwani””
The issue with above code is that first pair of “” marks the end of the [...]

Register or Login to read the full article...

Have questions related to this article? Want to request a new article? Use our forums to post your questions


Viewed 2,410 times

Parameterizing your strings

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

Strings are widely used in VBScript to pass information. This information might contain static and/or dynamic data.
Ex - a data base connection string “Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Data.xls;Extended Properties=””Excel 8.0;HDR=Yes;IMEX=1″”;”
In the above string dynamic data is the excel file name “C:\Data.xls”. This article will show various ways to do the parameterization of this value.
The wrong way to do [...]

Register or Login to read the full article...

Have questions related to this article? Want to request a new article? Use our forums to post your questions


Viewed 1,667 times
  1. Suscribe to Email

    Enter your email address:

    Delivered by FeedBurner