Class TestCaseFolders
java.lang.Object
com.testmonitor.actions.TestCaseFolders
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone(TestCaseFolder source) Clone a test case folderclone(TestCaseFolder source, String name) Clone a test case folderclone(TestCaseFolder source, String name, boolean includeSubfolders, boolean includeTestCases) Clone a test case foldercreate(TestCaseFolder testCaseFolder) Create a test case folderCreate a test case foldercreate(String name, TestCaseFolder parent) Create a test case foldercreateSubfolder(TestCaseFolder child, TestCaseFolder parent) Create a test case subfoldercreateSubfolder(String name, TestCaseFolder parent) Create a test case subfolderfindByName(String name) Find a test case folder using the provided name and test folder.findByName(String name, TestCaseFolder parent) Find a test case folder using the provided name and test folder.findByName(String name, Integer parentId) Find a test case folder using the provided name and test folder.findOrCreate(String name) Find a test case folder using the provided name or create a new one.findOrCreate(String name, TestCaseFolder parent) Find a test case folder using the provided name or create a new one.list()update(TestCaseFolder testCaseFolder) Update a test case folder.
-
Constructor Details
-
TestCaseFolders
-
-
Method Details
-
list
- Returns:
- A list of test case folders
- Throws:
IOExceptionURISyntaxException
-
list
- Parameters:
page- Page number- Returns:
- A list of test case folders
- Throws:
IOExceptionURISyntaxException
-
list
public ArrayList<TestCaseFolder> list(Integer page, Integer limit) throws IOException, URISyntaxException - Parameters:
page- Page numberlimit- Paging limit- Returns:
- A list of test case folders
- Throws:
IOExceptionURISyntaxException
-
list
public ArrayList<TestCaseFolder> list(Integer parentId, Integer page, Integer limit) throws IOException, URISyntaxException - Parameters:
parentId- test case folder parent idpage- Page numberlimit- Paging limit- Returns:
- A list of test case folders
- Throws:
IOExceptionURISyntaxException
-
get
- Parameters:
id- The test case folder ID- Returns:
- The test case folder matching the ID
- Throws:
IOExceptionURISyntaxException
-
create
Create a test case folder- Parameters:
testCaseFolder- The test case your want to create- Returns:
- The created test case folder
- Throws:
IOException
-
create
Create a test case folder- Parameters:
name- The test case folder name you want to create- Returns:
- The created test case folder
- Throws:
IOException
-
create
Create a test case folder- Parameters:
name- The test case folder name you want to createparent- The parent- Returns:
- The created test case folder
- Throws:
IOException
-
createSubfolder
Create a test case subfolder- Parameters:
name- The name of the test case folderparent- The parent folder- Returns:
- The created test case folder
- Throws:
IOException
-
createSubfolder
public TestCaseFolder createSubfolder(TestCaseFolder child, TestCaseFolder parent) throws IOException Create a test case subfolder- Parameters:
child- The name of the test case folderparent- The parent folder- Returns:
- The created test case folder
- Throws:
IOException
-
clone
public TestCaseFolder clone(TestCaseFolder source, String name, boolean includeSubfolders, boolean includeTestCases) throws IOException Clone a test case folder- Parameters:
source- The test case folder you want to clonename- The name of the cloneincludeSubfolders- Sets the option to include subfoldersincludeTestCases- Sets the option to include testcases- Returns:
- The cloned test case folder
- Throws:
IOException
-
clone
Clone a test case folder- Parameters:
source- The test case folder you want to clone- Returns:
- The cloned test case folder
- Throws:
IOException
-
clone
Clone a test case folder- Parameters:
source- The test case folder you want to clonename- The name of the clone- Returns:
- The cloned test case folder
- Throws:
IOException
-
findOrCreate
Find a test case folder using the provided name or create a new one.- Parameters:
name- The name of the test case folder- Returns:
- A test case folder matching the name or a new test case folder
- Throws:
IOExceptionURISyntaxException
-
findOrCreate
public TestCaseFolder findOrCreate(String name, TestCaseFolder parent) throws IOException, URISyntaxException Find a test case folder using the provided name or create a new one.- Parameters:
name- The name of the test case folderparent- The parent folder- Returns:
- A test case folder matching the name or a new test case folder
- Throws:
IOExceptionURISyntaxException
-
findByName
Find a test case folder using the provided name and test folder.- Parameters:
name- The name of the test case folder- Returns:
- Test case folders matching the provided name.
- Throws:
IOExceptionURISyntaxException
-
findByName
public ArrayList<TestCaseFolder> findByName(String name, Integer parentId) throws IOException, URISyntaxException Find a test case folder using the provided name and test folder.- Parameters:
name- The name of the test case folderparentId- The id of the parent folder- Returns:
- Test case folders matching the provided name.
- Throws:
IOExceptionURISyntaxException
-
findByName
public ArrayList<TestCaseFolder> findByName(String name, TestCaseFolder parent) throws IOException, URISyntaxException Find a test case folder using the provided name and test folder.- Parameters:
name- The name of the test case folderparent- The parent folder- Returns:
- Test case folders matching the provided name.
- Throws:
IOExceptionURISyntaxException
-
update
Update a test case folder.- Parameters:
testCaseFolder- The test case folder you want to update- Returns:
- The updated test case folder
- Throws:
IOException
-