Submitted Questions

  • How to find the particular word in text file and how to split and capture total line of the founded word using vb scripting?

    normally has many webtable and we can extract a lot of information using webtable methods in QTP.In this post we will discuss various methods by which we can used for webtable object. HyperLink and click the link and the password is 1234 to get the page . here i want find the HyperLink and password. my output should like :.... 1: HyperLink= "http://google.com/users/login?returnurl=%2fquestions%2fask#create-account" 2:...

    Anu

    • Jan 24th, 2014

    you can take the help of regexp object and find the matches as below"vb open the text file to search the word in set fso = createobject("scripting.filesystemobject") set mytxt = fs...

  • How to find out the regularly changing value in a single line?

    How to find out the regularly changing value in a single line? Tell me How many ways are there? Ex: India having 100 crore population now. here 100 is changing regularly. How to write the Script for this?

    Kishan

    • May 10th, 2016

    Below is the correct program.

    Code
    1. str="India having 148 crore population now."    
    2. set obj=new RegExp
    3. obj.Global=True
    4. obj.Pattern="[0-9]"
    5. set s=obj.Execute(str)
    6. for each x in s
    7. y=y&x
    8. Next
    9. msgbox y

    Divya

    • Mar 28th, 2016

    Code
    1. str="India having 100 crore population now."
    2. newarr=split(str)
    3. For i = 1 To ubound(newarr) Step 1
    4.         If isnumeric(newarr(i-1)) Then
    5.                 msgbox newarr(i-1)
    6.         End If
    7. Next

  • How to split the line and capture the line in text file using v script in qtp?

    I am facing the problem while working with File system object. Ex: I have a paragraph in a text file like in given below HTML normally has many webtable and we can extract a lot of information using webtable methods in QTP.In this post we will discuss various methods by which we can used for webtable object. HyperLink and click the link and the password is 1234 to get the page . Here my requirement...