User:Mevans/EnvironmentNote

From MozillaWiki
Jump to navigation Jump to search

Scenario One

Below depicts a realistic definition of the testruns for testing the basic platform compatibility matrix for the firefox browser.



 Product: FirefoxBrowser {}


//==== Define the Environment Types for the compatibility attributes
//
// Environment types have a name with the potential values associated with the name. 
// Note: Not clear if Environment types are associated with a product or just free floating entities within the system.

 // list of the support operating systems
 Environment: OsType {
   Values: {Ubuntu,CentOS,Win2000,WinXP,WinVista,Win7,MacOS10.5,MacOS10.6}
 }
   
 // support both 32bit and 64bit operatin
 Environment: OsArchSize {
   Values: {32bit,64bit}
 }

 // what is the initial user profile state for the tests
 Environment: UserProfile {
   Values: {clean,dirtysmall,dirtymed,dirtylarge}
 }

 // what plugins should be installed prior to the start of the tests
 Environment: InstalledPlugins {
   Values: {Standardset,None,Java,QuickTime,Shockwave,Silverlight}
 }

//==== Simple test cases to be performed on the support platforms 

 TestCase: startBrowser {}

 TestCase: openWebsite {}

 TestCase: openTabWithKeyBoard{}

 TestCase: closeTab{}

//==== Define the Testsuites 

 // The SmokeCompatibility suite defines all possible test combinations. Probably never used in a testrun.
  
 TestSuite: SmokeCompatibility { //represents 1536 possible test results 

   Environment: OsType {
     Values: {*}
   }
   
   Environment: OsArchSize {
     Values: {*}
   }

   Environment: UserProfile {
    Values: {*}
   }

   Environment: InstalledPlugins {
     Values: {*}
   }

   TestCaseList {
     startBrowser
     openWebsite
     openTabWithKeyBoard
     closeTab
   }
 }


 TestSuite: SmokeCompatibilityWinSupportedOSes { // represents 48 test case results 

   Environment: OsType {
     Values: {WinXP,WinVista,Win7} // no longer support win2000
   }

   Environment: OsArchSize { // need to run 32bit and 64bit
     Values: {*}
   }

   Environment: UserProfile {
    Values: {dirtymed,dirtylarge}
   }

   Environment: InstalledPlugins {
     Values: {Standardset}
   }

   TestCaseList {
     startBrowser
     openWebsite
     openTabWithKeyBoard
     closeTab
   }
 }


 TestSuite: SmokeLinuxSupportedOSes { // represents 48 test case results 

   Environment: OsType {
     Values: {WinXP,WinVista,Win7} // no longer support win2000
   }

   Environment: OsArchSize { // need to run 32bit and 64bit
     Values: {*}
   }

   Environment: UserProfile {
    Values: {dirtymed,dirtylarge}
   }

   Environment: InstalledPlugins {
     Values: {Standardset}
   }

   TestCaseList {
     startBrowser
     openWebsite
     openTabWithKeyBoard
     closeTab
   }
 }