Spacing: variable names should not have a space in them.Consistency: ‘name’ is not the same as ‘Name’ or ‘NAME’.There are some rules about variable names: The name given to each variable is up to the programmer, but ideally a variable name should have meaning, ie it should reflect the value that it is holding. It is important to use meaningful names for variables:įor example, pocketMoney = 20 means that the variable ‘pocketMoney’ is being used to store how much pocket money you have. Certifications Assess your test automation skills and be recognized.Each variable is named so it is clear which variable is being used at any time. ![]() Academy Build ACCELQ skills for Agile testing From getting-started in ACCELQ to mastering the powerful capabilites of the platform. ![]() For data lists, the values are the list items used directly in the test logic. The test logic needs to only reference the leaf node, while values are retrieved dynamically on executing the test cases. For example, the "Service Class" (in flight booking) can be a data list with values as Economy, Business Class, or First Class.Īs the final point of difference, data types require instance values against each leaf node. Hence, test coverage must cover all these scenarios.ĭata lists prove helpful in testing scenarios where inputs are from a flat list of possible values (without any hierarchy). As business rules vary for each scenario, data types are useful for each of these classes. An "international" flight booking can be France, Atlantic, or Asia. In the case of "domestic" flight bookings, the airport code could be a single city, multiple cities, or a hub airport. For example, an airport code field (during flight booking) can vary for different business scenarios. For example, account status in a banking application is typically classified as New, Current, Closed, Active, or Locked.ĭata types prove helpful when there's a need for a classification structure for the test inputs. On the other hand, a data list represents a flat list of values applicable to a data field in the application. Similarly, a commercial account can be an individual, enterprise, or small business. Further on, a retail account can be either standard or platinum. For example, a banking application can have different types of accounts, including retail and commercial. In essence, a data type represents a data element with a defined structure.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |