-
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
-
Expert Member
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.
-
Expert Member
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
-
Forum Rules