Difference between revisions of "API testing module"

From PC2wiki
Jump to: navigation, search
(initial article)
(No difference)

Revision as of 06:09, 9 October 2012

The API testing module is a reference and testing module for the pc2 API.

The API testing module allows a user to login and will print the output of API methods. Upon login a List box will appear where all output will be listed/printed.

Components

  • Login button - login
  • Logoff button - logoff
  • View All Run Source - DO NOT USE THIS view all run's source code
  • View Runs Grid - opens a window with a Run grid (Site, Team Login, Id, Time, Status/Judgement, Problem, Language)
  • Print ALL - print all reports in the API Methods listbox
  • Standings - print standings
  • API Methods list box - a list of reports to select from
  • Run button - print output for selected reports in the API Methods list box
  • Site - (when logged in) a list of sites in the contest, used with Get Run and GetClarification
  • Get Run - print info about the local run in the Run/Clar number textbox
  • GetClarification - print info about the local clar in the Run/Clar number textbox
  • Listener checkboxes (turn on and off listeners output)
    • View Run Listener - when listener invoked print data
    • View Clar Listener - when listener invoked print data
    • View Config Listener - when listener invoked print data
    • View Connection Listener - when listener invoked print data
  • Exit Button

See Also