TestEngineering/UI/AMO/AddonBlocklisting: Difference between revisions

m
 
(12 intermediate revisions by 2 users not shown)
Line 10: Line 10:


Change extensions.blocklist.url to https://addons.allizom.org/z/blocklist/3/%APP_ID%/%APP_VERSION%/%PRODUCT%/%BUILD_ID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/%PING_COUNT%/%TOTAL_PING_COUNT%/%DAYS_SINCE_LAST_PING%/
Change extensions.blocklist.url to https://addons.allizom.org/z/blocklist/3/%APP_ID%/%APP_VERSION%/%PRODUCT%/%BUILD_ID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/%PING_COUNT%/%TOTAL_PING_COUNT%/%DAYS_SINCE_LAST_PING%/


== Usecase Scenarios:  ==
== Usecase Scenarios:  ==
Line 34: Line 32:
* Change your about:config settings to point to preview
* Change your about:config settings to point to preview
* Tools-> Error Console
* Tools-> Error Console
* Execute  
* Execute Components.classes["@mozilla.org/extensions/blocklist;1"].getService(Components.interfaces.nsITimerCallback).notify(null);
* Check that the installed add-on is disabled with an appropriate warning (may take a few minutes)
* Check that the installed add-on is disabled with an appropriate warning (may take a few minutes)


Line 44: Line 42:


'''testcase 6: Check that specified Firefox version range is honored for a hardblocked extension'''
'''testcase 6: Check that specified Firefox version range is honored for a hardblocked extension'''
 
* Check that installation of https://addons.allizom.org/en-US/firefox/addon/hazaaron-khwaishein-aisi/ fails in Firefox 3.0
* Check that installation of https://addons.allizom.org/en-US/firefox/addon/hazaaron-khwaishein-aisi/ fails in Firefox 3.5
* Check that installation of https://addons.allizom.org/en-US/firefox/addon/hazaaron-khwaishein-aisi/ fails in Firefox 3.6.*
* Check that installation of https://addons.allizom.org/en-US/firefox/addon/hazaaron-khwaishein-aisi/ works in Firefox 4.0


'''testcase 7: Check blocklisting(hardblock) an add-on for specific platform/operating system'''  
'''testcase 7: Check blocklisting(hardblock) an add-on for specific platform/operating system'''  
 
* Check that installation of https://addons.allizom.org/en-US/firefox/addon/sunkjkjhqvdvcdh/ fails in Linux
 
* Check that installation of https://addons.allizom.org/en-US/firefox/addon/sunkjkjhqvdvcdh/ works in Win XP
* Check that installation of https://addons.allizom.org/en-US/firefox/addon/sunkjkjhqvdvcdh/ fails in MAC OSX
* Check that installation of https://addons.allizom.org/en-US/firefox/addon/sunkjkjhqvdvcdh/ fails in Windows Vista


'''testcase 8: Install a blocklisted (softblock) extension '''  
'''testcase 8: Install a blocklisted (softblock) extension '''  
* Try installing https://addons.allizom.org/en-US/firefox/addon/name-1/
* Check that there is a warning before installation as shown in https://wiki.mozilla.org/Blocklisting#What_users_will_see
* Installation is successful


 
'''testcase 9: Install blocklisted (softblock) version of an add-on '''
 
'''testcase 9: Verify that installing blocklisted(softblock) version of an add-on fails'''
 
 


'''testcase 12: Verify that only the specified add-on version is blocked(softblock) '''  
'''testcase 12: Verify that only the specified add-on version is blocked(softblock) '''  


'''testcase 13: Check that installed add-on is disabled when blocklisted (softblock)'''
'''testcase 13: Check that installed add-on is disabled when blocklisted (softblock)'''
Line 65: Line 66:
'''testcase 14: Check blocklisting(softblock) an add-on for specific Firefox version'''
'''testcase 14: Check blocklisting(softblock) an add-on for specific Firefox version'''


'''testcase 15: Check that specified Firefox version range is honored for a softlocked extension'''
'''testcase 15: Check that specified Firefox version range is honored for a softblocked extension'''


'''testcase 16: Check that specified Firefox version range is honored for a softblocked extension'''
'''testcase 16: Check blocklisting(softblock) an add-on for specific platform/operating system'''  


'''testcase 17: Check blocklisting a language pack'''


'''testcase 17: Check blocklisting(softblock) an add-on for specific platform/operating system'''  
'''testcase 18: Check blocklisting a dictionary'''


 
'''testcase 19: Check blocklisting a theme'''
'''testcase 18: Check blocklisting a language pack'''
'''testcase 19: Check blocklisting a dictionary'''
'''testcase 20: Check blocklisting a theme'''


=== Plugin Blocklisting ===
=== Plugin Blocklisting ===
'''testcase 1: Install a blocklisted (hardblock) plugin '''  
'''testcase 1: Install a blocklisted (hardblock) plugin '''<br>
 
'''testcase 2: Verify that using blocklisted(hardblock) version of an plugin fails''' <br>
 
'''testcase 3: Verify that only the specified plug-in  version is blocked(hardblock) '''<br> 
 
'''testcase 4: Check that installed plugin is disabled when blocklisted (hardblock)''' <br>
'''testcase 2: Verify that using blocklisted(hardblock) version of an plugin fails'''
'''testcase 5: Check blocklisting an plugin for specific Firefox version''' <br>
 
'''testcase 7: Check that specified Firefox version range is honored for a softblocked plug-in '''<br>
 
'''testcase 8: Check blocklisting(hardblock) a plug-in for specific platform/operating system''' <br>
 
'''testcase 9: Install a blocklisted (softblock) plug-in  '''<br>
'''testcase 3: Verify that only the specified plug-in  version is blocked(hardblock) '''  
'''testcase 10: Verify that installing blocklisted(softblock) version of an add-on fails'''<br>
 
'''testcase 11: Verify that only the specified add-on version is blocked (softblock) '''<br> 
 
'''testcase 12: Check that installed plug-in  is disabled when blocklisted (softblock)''' <br>
'''testcase 4: Check that installed plugin is disabled when blocklisted (hardblock)'''
'''testcase 13: Check blocklisting(softblock) an plug-in  for specific Firefox version'''<br>
 
'''testcase 14: Check that specified Firefox version range is honored for a softlocked plug-in '''<br>
'''testcase 5: Check blocklisting an plugin for specific Firefox version'''
'''testcase 15: Check blocklisting(softblock) a plug-in  for specific platform/operating system'''<br>
 
'''testcase 6: Check that specified Firefox version range is honored for a hardblocked plug-in '''
 
'''testcase 7: Check that specified Firefox version range is honored for a softblocked plug-in '''
 
 
'''testcase 8: Check blocklisting(hardblock) a plug-in for specific platform/operating system'''  
 
 
'''testcase 9: Check blocklisting(hardblock) an plug-in  for specific platform/operating system'''
 
'''testcase 10: Install a blocklisted (softblock) plug-in  '''  
 
 
 
'''testcase 11: Verify that installing blocklisted(softblock) version of an add-on fails'''
 
 
 
'''testcase 12: Verify that only the specified add-on version is blocked (softblock) '''  
 
 
'''testcase 13: Check that installed plug-in  is disabled when blocklisted (softblock)'''
 
'''testcase 14: Check blocklisting(softblock) an plug-in  for specific Firefox version'''
 
'''testcase 15: Check that specified Firefox version range is honored for a softlocked plug-in '''
 
'''testcase 16: Check that specified Firefox version range is honored for a softblocked plug-in '''
 
 
'''testcase 17: Check blocklisting(softblock) a plug-in  for specific platform/operating system'''  
 


=== Graphics Blocklisting ===
=== Graphics Blocklisting ===
Line 130: Line 96:




 
=== References ===
* https://wiki.mozilla.org/Blocklisting
* https://wiki.mozilla.org/Extension_Blocklisting:Code_Design
* https://wiki.mozilla.org/Extension_Blocklisting:Testing
* https://wiki.mozilla.org/Extension_Blocklisting




81

edits