
| Key: |
WET-47
|
| Type: |
Bug
|
| Status: |
Closed
|
| Resolution: |
Won't Fix
|
| Priority: |
Minor
|
| Assignee: |
Unassigned
|
| Reporter: |
Alister Scott
|
| Votes: |
0
|
| Watchers: |
1
|
|
If you were logged in you would be able to see more operations.
|
|
|
|
Original Estimate:
|
Unknown
|
Remaining Estimate:
|
Unknown
|
Time Spent:
|
Unknown
|
|
Environment:
|
WINXP SP2
|
|
|
When using the following code:
ToCheck_Button = Repository("CreateDetails").Radio(Regexp.new("suffix:=#{datatable.item("PrimaryDetail")}.*"))
if (ToCheck_Button.check_exists() == nil)
ToCheck_Button.set()
else
reporter.ReportFailure("Radio Button for primary detail does not exist","","")
end
At the moment it executes OK, but a error is red appears in my results.html file:
private method `split' called for /suffix:=Physical.*/:Regexp => Error
|
|
Description
|
When using the following code:
ToCheck_Button = Repository("CreateDetails").Radio(Regexp.new("suffix:=#{datatable.item("PrimaryDetail")}.*"))
if (ToCheck_Button.check_exists() == nil)
ToCheck_Button.set()
else
reporter.ReportFailure("Radio Button for primary detail does not exist","","")
end
At the moment it executes OK, but a error is red appears in my results.html file:
private method `split' called for /suffix:=Physical.*/:Regexp => Error |
Show » |
|
ToCheck_Button = Repository("CreateDetails").Radio(Regexp.new("suffix:=#{datatable.item("PrimaryDetail")}.*"))
--- pasted from users's list:
There is another way of dynamically creating objects. For example, for the radio button, you could define
<Object Name="Dyn_RadioButton" Type="Radio">
<Def Type="ChildObject">
<Description>
<suffix>/#{$qr_param1} .*/</suffix>
</Description>
</Def>
in your object repository. Then in your test scripts, you could directly call,
to_checkbutton=Repository("Dyn_RadioButton", datatable.item('PrimaryDetail'))