I would say that it is possible, and let me comeback to you on this later
today.

Thanks
Haroon

2009/8/25 satyadev <[email protected]>

>
> Hi Haroon Rasheed/Jian Fang,
>
> Is it possible to execute tests [extended from
> TelluriumTestNGTestCase ] with environment as input to selenium
> client ?
>
> regards,
> Satyadev
>
> On Aug 25, 12:26 pm, satyadev <[email protected]> wrote:
> > Hi Hari,
> >
> > it won't help;
> >
> > My basic question when  abc class is  extending class
> > TelluriumTestNGTestCase, how you set parameters to it ?
> >
> > regards,
> > Satyadev
> >
> > Factory creates multiple instances with different initial parameters
> > to specific test.
> > For using factory in this scenario our test method should have defined
> > one input parameter like browser.
> >
> > Here
> >
> > On Aug 25, 11:01 am, Harihara Vinayakaram <[email protected]> wrote:
> >
> >
> >
> > > Hi
> > >     I am not sure if this is what u are looking for
> >
> > > You set up the parameters in the testng.xml
> > > Something like
> > > <test name="xyz".>
> > >   <parameter name="browser" value="xyz"/>
> >
> > >   <classes>
> > >            <class name="abc" />
> > >   </classes>
> > > </test>
> >
> > > I have an @Factory method which looks like this
> >
> > > public class Abc {
> >
> > > private TestUserClass testUserClass;  // This contains data for the
> test
> >
> > > public abc(testUserClass) {
> > >    this.testUserClass= testUserClass;
> >
> > > }
> >
> > > @Parameters (["browser"])
> > > @Factory
> > > public Object[] factoryMethod() {
> > >      ArrayList<abc> localListtArray= new ArrayList<abc>();
> > >      // U populate values for testUserClass here
> > >      Abc abc = new Abc(testUserClass);
> > >      localListArrray.add(abc);
> > >      return localArrayList.toArray();
> >
> > > }
> > > }
> >
> > > Regards
> > > Hari
> >
> > > On Tue, Aug 25, 2009 at 11:07 AM, satyadev <[email protected]> wrote:
> >
> > > > Hi Haroon,
> >
> > > > I know testng parameters passing to a @Test.What  I want to know
> where/
> > > > how you passing parameter browser in your test class. ?
> >
> > > > Selenium Grid takes environment as a parameter instead of browser
> > > > parameter  as specified in 'grid_configuration.yml'.
> > > > If I want to pass environment as parameter how I should do it ?
> >
> > > > Current 'TelluriumTestNGTestCase' class don't take any parameters ?
> >
> > > > how you are able to pass Browser parameter ?
> >
> > > > regards,
> > > > Satyadev
> >
> > > > On Aug 24, 8:35 pm, Haroon Rasheed <[email protected]> wrote:
> > > > > Look at the following URL about using the parameters with TestNG.
> > > >http://testng.org/doc/documentation-main.html#parameters-testng-xml
> >
> > > > > <
> http://testng.org/doc/documentation-main.html#parameters-testng-xml>I
> > > > hope
> > > > > this helps.
> >
> > > > > Cheers
> > > > > Haroon
> >
> > > > > 2009/8/24 satyadev <[email protected]>
> >
> > > > > > What are different parameters that I can set to
> > > > > > 'TelluriumTestNGTestCase' ?
> >
> > > > > > Regards,
> > > > > > Satyadev
> >
> > > > > > On Aug 24, 3:44 pm, satyadev <[email protected]> wrote:
> > > > > > > Hi Guys,
> >
> > > > > > > Thanks for Info.
> >
> > > > > > > I am very much new to both testNG and Tellurium. I might ask
> some
> > > > > > > small questions please bear with me.
> >
> > > > > > > Does 'TelluriumTestNGTestCase' take parameter name="browser" ?
> >
> > > > > > > and how you pass browser parameter to your test classes ?
> >
> > > > > > > My test class example which works for Selenium RC
> > > > > > > public class CitrixPageDemo extends TelluriumTestNGTestCase
> > > > > > > {
> > > > > > >         private  HomePageSectionUI HomePageSection;
> > > > > > >         private  HomePageTopMenuUI HomePageTopMenu;
> > > > > > >         private  LoginModuleUI LoginModule;
> > > > > > >     @BeforeClass
> > > > > > >     public  void initUi() {
> >
> > > > > > >         // Citrix home page top sections
> > > > > > >         HomePageSection = new HomePageSectionUI();
> > > > > > >         HomePageSection.defineUi();
> > > > > > >         HomePageSection.useJQuerySelector();
> > > > > > >         HomePageSection.enableSelectorCache();
> > > > > > >         // Citrix home top menuitems
> > > > > > >         HomePageTopMenu = new HomePageTopMenuUI();
> > > > > > >         HomePageTopMenu.defineUi();
> > > > > > >         HomePageTopMenu.useJQuerySelector();
> > > > > > >         HomePageTopMenu.enableSelectorCache();
> > > > > > >         // Citrix Login Module
> >
> > > > > > >         LoginModule = new LoginModuleUI();
> > > > > > >         LoginModule.defineUi();
> > > > > > >         LoginModule.useJQuerySelector();
> > > > > > >         LoginModule.enableSelectorCache();
> > > > > > >     }
> >
> > > > > > >     @Test
> > > > > > >     public void test1()
> > > > > > >     {
> > > > > > >             // go to WebSite index page
> > > > > > >             //selenium.open("/lang/English/home.asp");
> > > > > > >             connectUrl("http://www.citrix.com/lang/English/
> > > > > > > home.asp");
> > > > > > >             // Verify webSite content
> > > > > > >             HomePageSection.waitForPageToLoad(30000);
> > > > > > >             assertEquals("Citrix Systems - Virtualization,
> Networking
> > > > > > > and Cloud. Simplified.", HomePageSection.getTitle());
> > > > > > >             assertTrue(HomePageSection.isTextPresent("Products
> &
> > > > > > > Solutions"));
> > > > > > >             HomePageSection.clickProductsAndSolutions();
> > > > > > >             assertEquals("Citrix Systems ยป The Best Application
> > > > > > > Delivery Solution", HomePageSection.getTitle());
> > > > > > >             HomePageTopMenu.clickLogin();
> > > > > > >             LoginModule.doMyCitrixLogin("a","a!");
> >
> > > > > > >                 assertTrue(LoginModule.isTextPresent("Welcome
> to My
> > > > > > Citrix!"));
> > > > > > >                 assertTrue(LoginModule.isTextPresent("CITRIX
> TEST
> > > > > > ACCOUNT1 >>
> > > > > > > ID: 3003908"));
> > > > > > >                 // Logout from Mycitrix
> > > > > > >                 HomePageTopMenu.clickLogout();
> >
> > > > > > >     }
> >
> > > > > > > }
> >
> > > > > > > regards.
> > > > > > > satya
> >
> > > > > > > On Aug 24, 3:31 pm, Harihara Vinayakaram <[email protected]>
> wrote:
> >
> > > > > > > > Hi
> > > > > > > >   We are using Tellurium + TestNG in the same way that Haroon
> > > > > > mentioned.
> > > > > > > > Actually that seems to be only way it works . I was trying to
> see
> > > > if I
> > > > > > can
> > > > > > > > play around with DataProvider to achieve the same but  did
> not
> > > > succeed
> >
> > > > > > > > Regards
> > > > > > > > Hari
> >
> > > > > > > > On Mon, Aug 24, 2009 at 3:58 PM, Haroon Rasheed <
> > > > [email protected]
> > > > > > >wrote:
> >
> > > > > > > > > We are defining the browser type in the TestNG suite files
> as
> > > > > > parameters to
> > > > > > > > > the tests. Our TestNG.xml file looks like this.
> > > > > > > > > <!DOCTYPE suite SYSTEM "
> http://beust.com/testng/testng-1.0.dtd";
> >
> > > > > > > > > <suite name="Web Render Tests CI">
> >
> > > > > > > > > <test name="firefox3">
> > > > > > > > > <parameter name="browser" value="firefox3"></parameter>
> > > > > > > > >  <packages>
> > > > > > > > > <package name="com.cms.test.*"></package>
> > > > > > > > >  </packages>
> > > > > > > > > </test>
> >
> > > > > > > > > <test name="safari3">
> > > > > > > > >  <parameter name="browser" value="safari3"></parameter>
> > > > > > > > > <packages>
> > > > > > > > >  <package name="com.cms.test.*"></package>
> > > > > > > > > </packages>
> > > > > > > > >  </test>
> > > > > > > > > </suite>
> >
> > > > > > > > > I hope this helps.
> >
> > > > > > > > > Cheers
> > > > > > > > > Haroon
> >
> > > > > > > > > 2009/8/24 satyadev <[email protected]>
> >
> > > > > > > > >> Hi Harron,
> >
> > > > > > > > >> Thanks for reply, how you are driving your testcases
> across
> > > > > > different
> > > > > > > > >> browser.
> > > > > > > > >> For example : I have one test case 'test1' I want to
> execute
> > > > across
> > > > > > > > >> different environments like firefox and IE across
> different
> > > > > > > > >> environments?
> >
> > > > > > > > >> with out using custom config how you are able to re-direct
> your
> > > > > > > > >> testcases across registered RC ?
> >
> > > > > > > > >> Can you share one sample with out customconfig object will
> be
> > > > help
> > > > > > > > >> full lot?
> >
> > > > > > > > >> regards,
> > > > > > > > >> Satyadev
> >
> > > > > > > > >> On Aug 24, 3:14 pm, Haroon Rasheed <[email protected]>
> > > > wrote:
> > > > > > > > >> > I have used the combination of Tellurium, Selenium Grid
> and
> > > > > > TestNG, but
> > > > > > > > >> not
> > > > > > > > >> > used the CustomConfig object. Why do you think that  you
> > > > cannot
> > > > > > use
> > > > > > > > >> > customconfig with TelluriumTestNGTestCase??
> >
> > > > > > > > >> > Cheers
> > > > > > > > >> > Haroon
> >
> > > > > > > > >> > 2009/8/24 satyadev <[email protected]>
> >
> > > > > > > > >> > > Hi Guys,
> >
> > > > > > > > >> > > Does anyone tried  'tellurium + selenium Grid with
> TestNG" ?
> > > > > > > > >> > > Current tellurium core out of box won't support in
> testNG
> > > > way
> > > > > > because
> > > > > > > > >> > > you can't set 'customconfig' object when extend a
> class with
> > > > > > > > >> > > 'TelluriumTestNGTestCase'.
> >
> > > > > > > > >> > > Does Anybody tried /share there experience will be
> help full
> > > > for
> > > > > > me.
> >
> > > > > > > > >> > > Regards,
> > > > > > > > >> > > Satyadev
> >
>

--~--~---------~--~----~------------~-------~--~----~
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