Results 1 to 2 of 2

Thread: Logic code to test user loging

  1. #1
    Junior Member
    Join Date
    Apr 2007
    Answers
    2

    Logic code to test user loging

    Can some one help me in giving the logic code when user already logged into the web based application the script which he is going to run for other testing includes to login application.

    May be if already login I want that to continue with testing


  2. #2
    Expert Member
    Join Date
    Apr 2008
    Answers
    1,859

    Re: Logic code to test user loging

    hai friend,

    for ex: the login page will be the home to enter into the site , provide the user name and password and click on login button. The login button will take you to some pages and identify an objects over there and check condition.

    Browser("B").Page("P").WebEdit("e").set "test"
    Browser("B").Page("P").WebEdit("e").setsecure "akfrfgniyb3890jzvf"
    Browser("B").Page("P").Webbutton("c").click

    here i am assuming if the login is valid the page navigation will be done to next page and there will be an image button c. So if the Image c exist then i can continue else close the browser

    If Browser(B0.Page(P).Image("C").Exist Then
    // steps to be followed
    else
    Browser.close
    End if

    Thanks
    Deepa


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact