Hello,

I had posted a project regarding a JSF Grid not working few days back.
Now the progress is i am able to test everything except :(,

Taking the example by code.
This is my small Grid Code(This is JSF Grid):
=======================
<h:form id="helloForm">
   <h:panelGrid columns="1" border="10" id="outGrid">
           <h:inputText id="textCol1"/>
           <h:inputText id="textCol2"/>
           <h:inputText id="textCol3"/>
           <h:inputText id="textCol4"/>
   </h:panelGrid>
</h:form>

Now i generate a .groovy code using the TrUMP utility by clicking on
the Grid and the 1st Text box.

Scenario : 1
=========
The code is:

ui.Form(uid: "HelloForm", clocator: [tag: "form", method: "post", id:
"helloForm"]){
       StandardTable(uid: "HelloFormoutGrid", clocator: [tag: "table",
id: "helloForm:outGrid"]){
                  InputBox(uid: "HelloFormtextCol1", clocator:[id:
"helloForm:textCol1"])
        }
}

i write a method in groovy file

public void sayHello(){
            pause 3000
            type "HelloForm.HelloFormoutGrid.HelloFormtextCol1", "One"
}

i run the mvn test

What happen is:
============
1. Tellurium tests runs
2. New Browser opens
3. "One" value gets typed in the first column of grid.
4. Test passes.

Scenario : 2
=========

ui.Form(uid: "HelloForm", clocator: [tag: "form", method: "post", id:
"helloForm"]){
       StandardTable(uid: "HelloFormoutGrid", clocator: [tag: "table",
id: "helloForm:outGrid"]){
                  InputBox(uid: "{row: all, column: 1}", clocator:[id:
"helloForm:textCol1"])
        }
}
------------------------------------------------------------------------------------------------------------------------------------------------
NOTE: This time the INPUT BOX UID is changed from "HelloFormtextCol1"
to "{row: all, column: 1}"
-------------------------------------------------------------------------------------------------------------------------------------------------

i write a method in groovy file

public void sayHello(){
            pause 3000
            type "HelloForm.HelloFormoutGrid.[1][1]", "One"
}

i run the mvn test

What happen is:
============
1. Tellurium tests runs
2. New Browser opens
3. Test passes.

NOTE : "One" value DOSE NOT get typed in the first column of grid
although the test passes.

When i use the code

public void sayHello(){
        pause 3000
        type  "HelloForm.HelloFormoutGrid[1][1]", "test"
        def x = getValue("HelloForm.HelloFormoutGrid[1][1]")
        println " Getting Value from Inbox Row One :: - "+x
        assertEquals("test", x)
        println " :: TEST PASSED :: - "
}

output on console is :

Getting Value from Inbox Row One :: - One
:: TEST PASSED :: -

This means the value is getting set in the grid component and when we
call getValue method is comes back too.

The only problem is i cannot see this in the browser (Firefox).
The other problem is the links and buttons are not getting clicked
this way so the flow dose not go to other pages i am doing this in
local env and none of the links are from outside env or domain. So the
timeout, proxies are not a problem

Then again when i refer the direct id ( eg: click
HelloForm.HelloFormoutGrid.HelloFormLink1") all the links and buttons
work fine, when i give dynamic reference (eg:
HelloForm.HelloFormoutGrid[1][2] , second column is link column in
grid) it does not work .

Is the functionality tested by any one of the uses, if yes kindly let
me know whats going wrong with me?
If any one can give me a small code snippet of grid component
and .groovy it will be gr8.

Thanks in advance,
-Eric.







-- 
You received this message because you are subscribed to the Google Groups 
"tellurium-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tellurium-users?hl=en.

Reply via email to