Document toolboxDocument toolbox

Conflicts in a Test Case

The conflicts that may arise while performing a Save As on a Test Case are as follows:

The task sequence in the Source or Target Project may have been changed.

Example:

  • Project Source has test case "Test Case."
  • The "Test Case" has two tasks "Task1" and "Task2" in the sequence 1 and 2 respectively.
  • The "Test Case" has been copied to Target project, so the Target Project has the same test case "Test Case."
  • The "Test Case" has the same two tasks, "Task1" and "Task2". If the sequence of the tasks in target is changed or if OnError condition of a task is changed and Save As is performed again, then in this case the "Test Case" from source shows conflict and does not get copied to target project.

Tasks may have been added in Source or Target Project.

Example:

  • Project Source has test case "Test Case."
  • The "Test Case" has two tasks, "Task1" and "Task2."
  • The "Test Case" has been copied to Target Project, so it is the same test case "Test Case."
  • The Test Case has the same two tasks, "Task1" and "Task2" and one additional task "Task3" has been added in the Source or Target Project. If a Save As is performed again, in that case the "Test Case" from Source will not be copied to Target Project, as the Source and Target Project have the same TC but have different number of tasks.

Tasks have been deleted from the Source or Target Project.

Example:

  • Project Source has test case "Test Case."
  • The "Test Case" has two tasks - "Task1" and "Task2."
  • Target Project has the same test case "Test Case."
  • "Task2" from the Source Project has been removed/deleted. In this case, the "Test Case" from Source will not be copied to Target Project as the Source and Target Project have the same TC but one of the tasks is not present in the Source Project.

The TC Name (details) in the Source or Target Project is changed.

Example:

  • Project Source has test case "Test Case" and has been moved to the Target Project, so the Target Project has the same test case "Test Case."
  • Now the Source or the Target Test Case Name has been changed to "TestCaseNew." In this case, the Test Case from the Source will not get copied to the Target Project because though the test cases are the same, their names differ.

The scenario in the Source or Target Project is changed.

Example:

  • Project Source has test case "Test Case" present in Scenario A.
  • The Scenario A has been copied to Target Project so the Target Project has the same Scenario A having the test case "Test Case."
  • If the test case from Scenario A is moved to another Scenario B in the Source or Target, then conflict will occur.

If the tasks in the Source or Target Project are changed, conflicts exist in the task.