Class TestResults

java.lang.Object
com.testmonitor.actions.TestResults

public class TestResults extends Object
  • Constructor Details

    • TestResults

      public TestResults(Connector connector, Project project)
      Parameters:
      connector - The TestMonitor connector to perfom HTTP requests
      project - The project you want to work on
  • Method Details

    • list

      public ArrayList<TestResult> list()
      Returns:
      A list of test results
    • list

      public ArrayList<TestResult> list(Integer page)
      Returns:
      A list of test results
    • list

      public ArrayList<TestResult> list(Integer page, Integer limit)
      Returns:
      A list of test results
    • get

      public TestResult get(Integer id)
      Parameters:
      id - The test result ID
      Returns:
      The test result that matches the ID
    • search

      public ArrayList<TestResult> search(String search)
      Search a test result
      Parameters:
      search - The search string
      Returns:
      A list of results
    • create

      public TestResult create(TestResult testResult)
      Create a test result
      Parameters:
      testResult - The name of the test result
      Returns:
      The created test suite
    • update

      public TestResult update(TestResult testResult)
      Update a test result
      Parameters:
      testResult - The test result you want to update
      Returns:
      A new instance of the test result
    • addAttachment

      public TestResult addAttachment(TestResult testResult, File attachment)
      Add an attachment to a test result
      Parameters:
      testResult - The test result you want to update with an attachment
      Returns:
      A new instance of the project