Results 1 to 3 of 3

Thread: Any help available for starters with user defined functions

  1. #1
    Junior Member
    Join Date
    Mar 2007
    Answers
    6

    Any help available for starters with user defined functions

    Hi,

    I am trying to write user defined functions for testing a web based applications.

    Please tell me if there is any help available for starters with user defined in Visual Basic.

    Any pointers to it would be of great help..

    Thanks,
    vJ


  2. #2
    Junior Member
    Join Date
    Feb 2007
    Answers
    17

    Re: Any help available for starters with user defined functions

    hi,

    here i am giving example for login using userdefined functions

    function login(uname,pwd)

    Browser("Browsername").page("pagename").WebEdit("username").set uname
    Browser("Browsername").page("pagename").WebEdit("password").set pwd
    Browser("Browsernam").page("pagename").WebButton("submit").click

    end function
    create this function in notepad and save this with extension filename.vbs

    now open Test script

    Associate this library file with Test script
    Test->settings->Resources->add this file((+) filename.vbs)
    write this statement in testscript

    x=datatable.value("uname",dtGlobalsheet) 'Test the application with multiple
    y=datatable.value("pwd",dtGlobalsheet) 'test data

    login x,y

    In datasheet create colums uname,pwd
    uname pwd
    xxxx


  3. #3
    Junior Member
    Join Date
    Apr 2007
    Answers
    23

    Re: Any help available for starters with user defined functions

    what type of help u need give exact one i will give the solution to u


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