Folder Mapping Logic
🔄 How Synchronization Works
Trigger | Action |
---|---|
Git push to target branch | App receives webhook, scans modified test files |
| Test methods/functions/keywords are extracted |
Match in Xray | Existing test case is updated |
No match | New |
📌 Only files under configured directories (e.g.
tests/
) are scanned.Test case title =
your-repo.dir.file.class.method
oryour-repo.dir.file.keyword
definition = method code block or keywords
🧬 Example Recognition Patterns
Java
public class LoginTests {
@Test
public void shouldLoginWithValidCredentials() {
// Valid login test
}
}
→ Test Case: your-code.file-path.file-name.LoginTests.shouldLoginWithValidCredentials
→ Definition: Valid login test
Python
class TestLogin:
def test_valid_login(self):
"""Test logging in with valid credentials"""
→ Test Case: your-code.file-path.file-name.TestLogin.test_valid_login
→ Definition: Test logging in with valid credentials
Robot Framework
*** Test Cases ***
Valid Login
[Documentation] Logs in with valid user credentials
→ Test Case: your-code.file-path.file-name.Valid Login
→ Definition: [Documentation] Logs in with valid user credentials