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