{"id":36622530,"url":"https://github.com/actframework/act-e2e","last_synced_at":"2026-01-12T09:26:51.096Z","repository":{"id":57738310,"uuid":"131677823","full_name":"actframework/act-e2e","owner":"actframework","description":"Provide end to end test support","archived":false,"fork":false,"pushed_at":"2018-08-08T10:49:28.000Z","size":176,"stargazers_count":3,"open_issues_count":16,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-06T02:18:38.491Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/actframework.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-01T04:55:09.000Z","updated_at":"2018-08-16T01:17:52.000Z","dependencies_parsed_at":"2022-08-24T09:00:20.175Z","dependency_job_id":null,"html_url":"https://github.com/actframework/act-e2e","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/actframework/act-e2e","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actframework%2Fact-e2e","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actframework%2Fact-e2e/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actframework%2Fact-e2e/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actframework%2Fact-e2e/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/actframework","download_url":"https://codeload.github.com/actframework/act-e2e/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actframework%2Fact-e2e/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28337713,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-12T09:26:50.992Z","updated_at":"2026-01-12T09:26:51.089Z","avatar_url":"https://github.com/actframework.png","language":"Java","readme":"# act-e2e\n\nSupport end to end test of act application\n\n## 1. Usage\n\n### 1.1 Files\n\nact-e2e use all settings in `e2e` profile to run e2e test. In addition to settings (found `resources/conf/e2e`), the following files in `resources` are read by act-e2e plugin to run e2e test:\n\n* `resources/e2e/fixtures/*`\n    - stores all data fixtures files prepared for testing environment\n* `resources/e2e/scenarios.yml`\n    - Defines test scenarios\n* `resources/e2e/scenarios/*.yml`\n    - stores test scenarios in multiple files for easier management\n* `resources/e2e/requests.yml`\n    - defines request templates which can be referred in request definition in scenario files\n\n#### 1.1.1 Sample Fixture file\n\n```yaml\nCourse(math):\n  id: 1\n  name: Maths\nCourse(history):\n  id: 2\n  name: History\nUser(green):\n  id: 1\n  name: Green Luo\n  birthday: 1919-01-01\n  courses:\n    - embed:math\n\nUser(black):\n  id: 2\n  name: Black Smith\n  birthday: 1818-02-02\n  courses:\n    - embed:math\n    - embed:history\nUser(john):\n  id: 3\n  name: John Brad\n  courses:\n    - id: 3\n      name: Physics\n    - id: 4\n      name: Science\n```\n\n#### 1.1.2 Sample Scenario file\n\n```yaml\n# Test hello service\nScenario(Hello Service):\n  description: a service says hello\n  interactions:\n    - description: send request to hello service without parameter\n      request:\n        method: GET\n        url: /hello\n      response:\n        text: Hello World # response text must be \"Hello World\"\n    - description: send request to hello servcie with parameter specified\n      request:\n        method: GET\n        url: /hello?who=ActFramework\n      response:\n        # this time we demonstrate verify text with a list of verifiers\n        text:\n          - eq: Hello ActFramework # value must be equal to \"Hello ActFramework\"\n          - contains: ActFramework # value must contains \"ActFramework\"\n          - starts: Hello # value must starts with \"Hello\"\n          - ends: Framework # value must ends with \"Framework\"\n    - description: send request to hello servcie with parameter specified and require JSON response\n      request:\n        json: true # specify accept type is application/json\n        method: GET\n        url: /hello?who=Java\n      response:\n        json: # treat result as a JSON object\n          result: Hello Java # result property of hte JSON object must be \"Hello World\"\n\n# Test date service\nScenario(Date Service):\n  description: A service returns a date\n  interactions:\n    - description: send request to the service\n      request:\n        method: GET\n        url: /date\n      response:\n        text:\n          - before: 2000-01-01\n          - after: 01/Jan/1990\n    - description: send request to the service and request response be JSON format\n      request:\n        json: true\n        method: GET\n        url: /date\n      response:\n        json:\n          result:\n            - before: 2000-01-01\n            - after: 01/Jan/1990\n\n# Test todo-task service\nScenario(task-service):\n  description: A basic todo task service test\n  interactions:\n    - description: Create the a task with description specified\n      request:\n        method: POST\n        url: /tasks\n        params:\n          task.description: TaskA\n      response:\n        json:\n          id: ...\n          description: TaskA\n    - description: Retrieve the Task just created\n      request:\n        method: GET\n        url: /tasks/${last:0.id}\n      response:\n        json:\n          id: \u003cany\u003e\n          description: TaskA\n    - description: Create a task without description\n      request:\n        method: POST\n        url: /tasks\n      response:\n        status: 400\n```\n\n1.2 Run test\n\nFirst make sure you have act-e2e plugin dependency in your `pom.xml` file:\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003eorg.actframework\u003c/groupId\u003e\n  \u003cartifactId\u003eact-e2e\u003c/artifactId\u003e\n  \u003cversion\u003e${act-e2e.version}\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nAt the moment the version of act-e2e version is `0.0.6`. Note if your have the following parent in your pom.xml file you get act-e2e-0.0.6 automatically, no need to add it into your dependency.\n\n```xml\n \u003cparent\u003e\n    \u003cgroupId\u003eorg.actframework\u003c/groupId\u003e\n    \u003cartifactId\u003eact-starter-parent\u003c/artifactId\u003e\n    \u003cversion\u003e1.8.8.4\u003c/version\u003e\n\u003c/parent\u003e\n```\n\nNow you can run end to end test of the app using `e2e` profile:\n\n```\n./run_prod -p e2e\n```\n\nNote if you are using act-starter-parent-1.8.8.0 you don't need to add the dependency, and you can run e2e test with maven:\n\n```\nmvn compile act:e2e\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factframework%2Fact-e2e","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factframework%2Fact-e2e","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factframework%2Fact-e2e/lists"}