Ats automated test software style guide brian jackson test technologies

ATS Automated Test Software Style Guide Brian Jackson Test Technologies EDCS - Version Approved February Abstract This document describes the Cisco Test Technologies style convention standards for development of ATS automated test scripts and procedure libraries CATS Automated Test Software Style Guide Copyright ? Cisco Systems Inc All rights reserved Cisco Con ?dential ?? For Internal Use Only CTable of Contents Table of Contents Introduction Quoting Quoting for Variable Command and Special-Character Substitution Quoting for Variable Command and Special-Character Suppression Default to the Use of Double Quotes to Quote Strings Quote Single- Element Strings Using Double Quotes Quote Expressions Using Curly Braces Quote Expressions Using Curly Braces to Maintain Consistency Quote Expressions Using Curly Braces to Improve Performance Quote Looping Expressions Using Curly Braces Quote Code Blocks Using Curly Braces Quote Procedure Bodies and Script Sections Using Curly Braces Quote Non-Space-Delimited Variable Names Using Curly Braces Quote Procedure Argument Lists Using Curly Braces Commands and Code Blocks Command Placement and Length Code One Command per Line Split Lengthy Lines Split Command Lines That Exceed Characters Use join to Split Strings That Exceed Characters Split Commands at Logical Breaks Code Blocks Quote Code Blocks Using Curly Braces Reminder Align Opening and Closing Code Block Curly Brace Indent the Contents of Code Blocks Four Spaces Avoid Excessively Long or Deeply Nested Code Blocks Treat Script Sections and Device Con ?gurations As Code Blocks Treat Procedure Bodies As Code Blocks Command Expressions Use Spaces to Delimit Operators and Values in Expressions Exclude the Equality Operator from Boolean Expressions Explicitly De ?ne Expression Operation Precedence Special Command Considerations Handling switch Statements Handling for Statements Do Not Include then in if Statements Using switch Versus elseif Statements Use -- string to mark end of options Handling uplevel and upvar statements Handling case statements White Space and Indentation Code Logic White-Space Separation Use One Line of White Space to Visually Segment Software Logic Using Formfeeds for Print Formatting ATS Automated Test Software Style Guide i CTable of Contents Indent Nested Code Blocks Four Spaces Comments Format Comments Like Bullet Items Comment All Logical Blocks of Code Indent Comments to Align Them with the Code That Follows Add Comments at End of Nested Code Blocks Optional Variable Comments Document Constants and Important Variables Document Internal Data Structures Script Header and Footer Comments Include the Standard Script Header Comment Include the Standard Script Footer Comment Procedure Comments Include Script Procedure Comments Include the Standard Procedure Library Header Comment Include the Standard Procedure Library Footer Comment Include Standard Procedure Library Procedure Comments Include Procedure Library Internal Procedure Comments ITcl Class Library Comments Include the Standard Class Library Header Comment Include Standard Class Library Method Comments Comment Nonintuitive Script Logic Use Comments to Document Output Being Parsed Comment Router Con ?gurations Generating Documentation from Comments Include Cisco copyright notice in all ?les Include RCS Id tag in all ?les Naming Assign Meaningful Names Use Standard Characters in Names Abbreviate Names Techniques for Constructing Names Underscore-Delimited Naming Camelback Naming Name Pre

Documents similaires
Devoir 6 3 Jean Michel Gardu? o González Devoir Masculin Le quartier Le nom Le croissant Le festival L ? opéra Le village Féminin La journée La banque La voiture La baguette La lettre La boutique L ? o ?ce de tourisme La carte La gare La ville J ? adore l 0 0
Guide francais 6e et 5e MINISTERE DE L ? EDUCATION NATIONALE DE L ? ALPHABETISATION ET DE LA PROMOTION DES LANGUES NATIONALES DIRECTION GENERALE DE LA RECHERCHE EN EDUCATION ET DE L ? INNOVATION PEDAGOGIQUE DIRECTION DE LA PRODUCTION DES MOYENS DIDACTIQUE 0 0
E f lb franceza bilingv si 008 1 0 0
Logo immobilier exemples de logo sur le thème immobilier Dans le secteur de l ? immobilier certains éléments typiques tels qu ? une maison un toit ou une ligne de toits sont fréquemment utilisés dans la conception de logos De nombreuses autres idées un pe 0 0
Usthb acad FORMATION AUTOCAD D D OBJECTIFS Acquérir les bases élémentaires des commandes AutoCAD PRÉ-REQUIS ? Maitrise de l ? outil informatique ? Une connaissance du dessin industriel est souhaitable PUBLIC Dessinateurs Techniciens Ingénieurs Responsable 0 0
Serie 7 redresseurs Lycée Technique Chichaoua Classe STE Série N Montages redresseurs Année Scolaire Unité ADC Exercice On branche entre phase et neutre du réseau électrique le montage redresseur ci-dessous Déterminer pour cette tension v t ?? sin ?t la v 0 0
Julian zabaleta a table À table À TABLE Julian Daniel Zabaleta Pi? arte Date du cours JE COMPRENDS Activité regarde la vidéo et complète le plateau repas avec le menu du jour Entrée Salade Ou Pastèque Boisson Eau Plat principal Hachis Parmentier ou Gratin 0 0
La phrase declarative La phrase interrogative séances Niveau CE DOMAINE français SOUS DOMAINE grammaire COMPETENCES Conna? tre les di ?érents types de phrases interrogative et déclarative transformer une phrase simple a ?rmative en phrase interrogative ou 0 0
Examen1 mva013 corrige cle0cfa31 0 0
Msnt pdf Catalogue Réfrigération Section Notice technique Edition MS Série MS Régulateurs Electroniques multi-étages et à usage général Présentation La série MS a été conçue pour la régulation de la température de l'humidité ou de la pression à un ou plus 0 0
  • 57
  • 0
  • 0
Afficher les détails des licences
Licence et utilisation
Gratuit pour un usage personnel Attribution requise
Partager