Software Flashcards

1
Q

What are some characteristics of the REST API

A
  • REpresentational (format of data) State (stateless) Transfer
  • Stateless Each request from client to server must contain all of the information necessary to understand the request
  • Client-Server Separates user interface concerns from Server concerns
  • cacheable or non cacheable
  • Uniform Interface Identify resources (URI-Uniform Resource Identifier), manipulate resources with URI (endpoints)
  • Layered System format of data stays same between client/server regardless of components between
  • Code on Demand (optional)
  • Data format can be json, xml, html, plain text
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are characteristics of an Automation Framework?

A
  • Code Reusability
  • Maximum Coverage
  • Scenario Recovery
  • Low maintenance cost
  • Minimal manual effort
  • Easy reporting
  • Free and Open Source?
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the __init__(self) method in python?

A

A special method, which is called class constructor or initialization method that Python calls when you create a new instance of this class.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Give example of creating a class in Python

A
class Employee:
   '''Common base class for all employees'''
   empCount = 0
   def \_\_init\_\_(self, name, salary):
      self.name = name
      self.salary = salary
      Employee.empCount += 1
   def displayCount(self):
     print "Total Employee %d" % Employee.empCount
How well did you know this?
1
Not at all
2
3
4
5
Perfectly