Exforsys
+ Reply to Thread
Results 1 to 8 of 8

QTP Script

This is a discussion on QTP Script within the Software Testing forums, part of the Testing category; How can we write script for dynamically changing values in qtp. note: without using Regular Expressinons. For eg: in my ...

  1. #1
    nani4urs is offline Junior Member Array
    Join Date
    Oct 2007
    Answers
    4

    Smile QTP Script

    How can we write script for dynamically changing values in qtp.
    note: without using Regular Expressinons.

    For eg: in my application there is a link like Festival.

    This link can change dynamically like Christmas, Diwali, and Dussera….

    But actually I stored in OR with link name as festival.

    So wt we do to identify the link.

    Without using Regular expressions how can we do?

    Is there any solution for these one.


  2. #2
    sangeetharavi is offline sangee Array
    Join Date
    Jul 2007
    Answers
    8
    Hi,

    I think u can use descriptive programing for this.


  3. #3
    kalyansantosh is offline Member Array
    Join Date
    Feb 2007
    Location
    Hyderabad
    Answers
    82

    Post Script

    Send the scenario (Properties also)
    i will write a script.


  4. #4
    rajusushma is offline Junior Member Array
    Join Date
    Feb 2008
    Answers
    2
    Hi kalyan my email id is sushmadevi77@yahoo.com please email me how to write test plan and what document i should write before starting write test plan.


  5. #5
    Noorjahan is offline Junior Member Array
    Join Date
    Jul 2008
    Answers
    9
    Descriptive programming is the way


  6. #6
    sukanya_QTP is offline Junior Member Array
    Join Date
    Apr 2008
    Answers
    8

    use descriptive programming to create link dynamically

    Quote Originally Posted by nani4urs View Post
    How can we write script for dynamically changing values in qtp.
    note: without using Regular Expressinons.
    For eg: in my application there is a link like Festival.
    This link can change dynamically like Christmas, Diwali, and Dussera….
    But actually I stored in OR with link name as festival.
    So wt we do to identify the link.
    Without using Regular expressions how can we do?
    Is there any solution for these one.

    use descriptive programming to create link dynamically ..


  7. #7
    jyotikrushna is offline Junior Member Array
    Join Date
    Sep 2008
    Answers
    2

    answer for ur question

    Hi.

    don't worry u can use descriptive programming here. below is ur answer

    msgbox=Browser("browsername").Page("page name").Link("name:=festival,html tag:=A").tostring

    before execute this plz check the available properties and methods of that link by using object spy.


  8. #8
    lipsi is offline Junior Member Array
    Join Date
    Oct 2008
    Answers
    3
    Quote Originally Posted by nani4urs View Post
    How can we write script for dynamically changing values in qtp.
    note: without using Regular Expressinons.
    ...
    hey can anyone tell me according to the rule negative test cases has to be fail. so if i'll write 10 positive & 10 negative cases .or i am working in some management tool it will generate 10 cases are failed it means 10 bugs over there .but they are not bugs they are result of negative test cases .....then this is report is become false or what


    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...