QA/Execution/Web Testing/Docs/Automation/Testcases/ConfigFiles: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 4: Line 4:


#''configurationAMO''  
#''configurationAMO''  
#''browserConfig'' (will be renamed to ''TCParameters'')  
#''TCParameters'' (previously ''browserConfig'')
#''GridConnection''
#''GridConnection''


Line 27: Line 27:
Note: It is recommended not to use a specific add-on unless necessary. Currently, our tests picks a random add-on from the home-page if you call the function ''getRandomAddonVersion2(appName, sel) ''<br>  
Note: It is recommended not to use a specific add-on unless necessary. Currently, our tests picks a random add-on from the home-page if you call the function ''getRandomAddonVersion2(appName, sel) ''<br>  


<br>
<br>  


<u>'''borwserConfig (TCParameters):'''</u><br>
===== <u>'''TCparams:'''</u> =====


TCParameters has variables defined with values that are required to run a test case. We will have 3 copies of TCParameters, one for Smoke Tests suite, one for Basic Functional Tests suite &amp; one for Full functional tests.<br>
TCParameters has variables defined with values that are required to run a test case. The module has multiple classes which defines parameters for different test suites:&nbsp;Smoke tests, Basic Functional Tests and Full Functional Tests.<br>  


Some of the variables defined here are: <br>
Some of the variables defined here are: <br>  


# limits for processing loops<br>&nbsp;maxCategories = 3 # maximum number of categories checked in test case<br>&nbsp;maxItemsPerPage = 10 # maximum number of items (ex: personas, add-ons) checked per page<br>&nbsp;# sortOption and sortOptionControl is being replaced by page specific options.<br>&nbsp;sortOption = '' # sort option parameter for a test function. possible values listed in test suite<br>&nbsp;sortOptionControl = '' # sort option control to select, if script handles multiple. values listed in test suite<br>&nbsp;# list sort and filter options<br>&nbsp;AMOhomePageSortOptions = ('recommended', 'popular', 'added', 'updated')<br>&nbsp;AMOhomePageSort = AMOhomePageSortOptions[0] <br>
*limits for processing loops  
** maxCategories = 3&nbsp;&nbsp; i.e. maximum number of categories checked in test case  
** maxItemsPerPage = 10 &nbsp; i.e. maximum number of items (ex: personas, add-ons) checked per page  
* list sort and filter options  
** AMOhomePageSortOptions = ['recommended', 'popular', 'added', 'updated']
** personasBrowsePageSortOptions = ['up-and-coming', 'created', 'popular']<br>


Depending on the kind of test suite, the values will differ. For e.g. maxCategories = 1 (for Smoke Test Suite); maxCategories = 3 (for BFT Suite); maxCategories = all (for FFT); <br>
Depending on the kind of test suite, the values will differ. For e.g. maxCategories = 1 (for Smoke Test Suite); maxCategories = 3 (for BFT Suite); maxCategories = 99 (for FFT); <br>  


<br>
<br>


<br>
===== GridConnection:<br> =====
 
This file defines Selenium Grid server variables which almost never changes. It defines the environment names (browser &amp; OS) we have on Grid setup.
 
 


<br>
<br>  


<br>
<br>
1,072

edits