Results 1 to 3 of 3

Thread: Assign value to variable in datapool

  1. #1
    Geek_Guest
    Guest

    Assign value to variable in datapool

    Is it possible to assign a value to a variable in the datapool through RFT scripting.
    I tried with the following:

    dpSrting("UserName") = "TestUser";
    // This is throwing error message "The left hand side of an assignment must be a variable.

    dpSrting("UserName").value = "TestUser";
    // This is throwing error message "The field String.value is not visible"


    Can anyone help me with how to solve this issue?

    Question asked by visitor Ashok


  2. #2
    Expert Member
    Join Date
    Sep 2007
    Answers
    110

    Re: Assign value to variable in datapool

    Can you tell me what is RFT scripting.
    I familiar with vb and java scripttings.
    but not RFT.


  3. #3
    Expert Member
    Join Date
    Oct 2007
    Answers
    375

    Smile Re: Assign value to variable in datapool

    Hi Rajaputra,

    RFT scripting is basically scripting using an automation tool called as RATIONAL FUNCTIONAL TESTER.(RFT)

    RFT provides 2 scripting bases - Java version and .NET version which supports VBScripting syntaxes. RFT was introduced as Rational Robot could not provide proper support to java swing applications.

    Also RFT has a better user interface and user-friendly nature as compared to Rational Robot.

    Hi Guest,

    from what I understand to your error message stating that "The left hand side of an assignment must be a variable", did you try this.....

    var strName = "TestUser"
    strName = dpSrting("UserName");

    Cheers.......


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