Difference between revisions of "API testing module"

From PC2wiki
Jump to: navigation, search
m (Startup Steps: added image and updated text)
m (Components: small mods)
Line 16: Line 16:
 
* Login button - login  
 
* Login button - login  
 
* Logoff button - logoff
 
* Logoff button - logoff
* View All Run Source - '''DO NOT USE THIS''' view all run's source code
+
* View All Run Source - view all run's source code '''DO NOT USE THIS''' bad things can happen.
 
* View Runs Grid - opens a window with a Run grid (Site, Team Login, Id, Time, Status/Judgement, Problem, Language)
 
* 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
+
* Print ALL - print every report output
 
* Standings - print standings
 
* Standings - print standings
* API Methods list box - a list of reports to select from
+
* API Methods list box - list of reports to list contest information
 
* Run button - print output for selected reports in the API Methods list box
 
* 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
 
* 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
 
* 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
 
* GetClarification - print info about the local clar in the Run/Clar number textbox
* Listener checkboxes (turn on and off listeners output)
+
* Listener checkboxes (turn on and off all listeners' output)
** View Run Listener - when listener invoked print data
+
** View Run Listener - when listener invoked prints data
** View Clar Listener - when listener invoked print data
+
** View Clar Listener - when listener invoked prints data
** View Config Listener - when listener invoked print data
+
** View Config Listener - when listener invoked prints data
** View Connection Listener - when listener invoked print data
+
** View Connection Listener - when listener invoked prints data
* Exit Button
+
* Exit Button - exit (logoff and exit)
  
 
==Usage==
 
==Usage==

Revision as of 11:38, 19 January 2013

The API testing module is a GUI reference and testing program which exclusively uses the pc2 API.

Startup Steps

The API testing module allows a user to login and will print the output of API methods.

Use the pc2tapi script to start the API testing GUI, thus:

APITestFrame.png

Upon login a List box will appear on the right of the screen. Output from API calls will be listed in that window.

Components

  • Login button - login
  • Logoff button - logoff
  • View All Run Source - view all run's source code DO NOT USE THIS bad things can happen.
  • View Runs Grid - opens a window with a Run grid (Site, Team Login, Id, Time, Status/Judgement, Problem, Language)
  • Print ALL - print every report output
  • Standings - print standings
  • API Methods list box - list of reports to list contest information
  • 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 all listeners' output)
    • View Run Listener - when listener invoked prints data
    • View Clar Listener - when listener invoked prints data
    • View Config Listener - when listener invoked prints data
    • View Connection Listener - when listener invoked prints data
  • Exit Button - exit (logoff and exit)

Usage

Use

pc2tapi --help 

To print this usage

Usage: [--help]  

Purpose: a API test frame 

--help    this message

Version 9.3 20130117 (Thursday, January 17th 2013 06:10 UTC) Java ver 1.6.0_22 build 2591 Windows 7 6.1 (x86)

See Also