{"id":24580064,"url":"https://github.com/vdaburon/create-external-file-for-har","last_synced_at":"2026-01-04T05:03:44.540Z","repository":{"id":239158626,"uuid":"797303464","full_name":"vdaburon/create-external-file-for-har","owner":"vdaburon","description":"Console text tool to create transaction infos corresponding to a har file","archived":false,"fork":false,"pushed_at":"2024-05-13T09:31:37.000Z","size":661,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-24T01:31:52.957Z","etag":null,"topics":["har","jmeter","jmeter-plugin","jmeter-plugins"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vdaburon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-07T15:23:52.000Z","updated_at":"2024-05-13T09:31:40.000Z","dependencies_parsed_at":"2024-05-10T12:01:59.202Z","dependency_job_id":null,"html_url":"https://github.com/vdaburon/create-external-file-for-har","commit_stats":null,"previous_names":["vdaburon/create-external-file-for-har"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdaburon%2Fcreate-external-file-for-har","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdaburon%2Fcreate-external-file-for-har/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdaburon%2Fcreate-external-file-for-har/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdaburon%2Fcreate-external-file-for-har/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vdaburon","download_url":"https://codeload.github.com/vdaburon/create-external-file-for-har/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244056429,"owners_count":20390720,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["har","jmeter","jmeter-plugin","jmeter-plugins"],"created_at":"2025-01-24T01:32:36.109Z","updated_at":"2026-01-04T05:03:39.483Z","avatar_url":"https://github.com/vdaburon.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://github.com/vdaburon/create-external-file-for-har/blob/main/doc/create-external-file-for-har-logo.png\" alt=\"create an external csv file for har\"/\u003e\n\n  \u003cp align=\"center\"\u003eCreate a csv file with transaction information to complete a HAR (Http ARchive) file.\u003c/p\u003e\n  \u003cp align=\"center\"\u003e\u003ca href=\"https://github.com/vdaburon/create-external-file-for-har\"\u003eLink to github project create-external-file-for-har\u003c/a\u003e\u003c/p\u003e\n\u003c/p\u003e\n\n# create-external-file-for-har\nConsole text tool to create transaction info corresponding to a har file.\n\nCreate a csv file with transaction information to complete a HAR (Http ARchive) file.\n\nThe csv format is : TIME_STAMP ISO GMT;ELEMENT;NAME;TYPE\u003cbr/\u003e\n- Timestamp ISO GMT format\n- ELEMENT values are : \u003ccode\u003eTRANSACTION\u003c/code\u003e or \u003ccode\u003eCOMMENT\u003c/code\u003e\n- TYPE for transaction, values are : \u003ccode\u003estart\u003c/code\u003e or \u003ccode\u003estop\u003c/code\u003e\n- CSV separtor : \";\"\n- Charset : \"UTF-8\"\n\nE.g :\n\u003cpre\u003e\n2024-05-07T07:56:40.513Z;TRANSACTION;authent;start\n2024-05-07T07:56:56.261Z;TRANSACTION;authent;stop\n2024-05-07T07:57:08.679Z;TRANSACTION;home;start\n2024-05-07T07:57:10.123Z;COMMENT;user toto;\n2024-05-07T07:57:14.310Z;TRANSACTION;home;stop\n2024-05-07T07:57:30.280Z;TRANSACTION;logout;start\n2024-05-07T07:58:15.377Z;TRANSACTION;logout;stop\n\u003c/pre\u003e\n\n\n## Launch the tool \nThis tool could be use with script shell Windows or Linux.\n\u003cpre\u003e\nC:\\mydir\u003ejava -jar -Dfile.encoding=UTF-8 -jar ../target/create-external-file-for-har-1.0-jar-with-dependencies.jar\n\u003c/pre\u003e\n\nWith set file out parameter :\n\u003cpre\u003e\nC:\\mydir\u003ejava -jar -Dfile.encoding=UTF-8 -jar ../target/create-external-file-for-har-1.0-jar-with-dependencies.jar c:/temp/demo1.csv\n\u003c/pre\u003e\n\n## Help\nCommand help or h display :\n\n\u003cpre\u003e\nHelp\nCommands : \nsf \u0026lt;file name\u0026gt; : Set the File out name to save information, need to be first command or the file name is set at program start with a launch program parameter\nch \u0026lt;charset\u0026gt; : set the CHarset to write in the file out  (e.g : UTF-8 (Default) or ISO-8859-1 or Cp1252 (windows))\nts \u0026lt;transaction name\u0026gt; : for Transaction Start with transaction name not empty\nte [\u0026lt;transaction name\u0026gt;] : for Transaction End if no transaction name then use the last transaction name\nde \u0026lt;transaction name\u0026gt; : DElete start and end transaction in csv file or a comment\nco \u0026lt;comment\u0026gt; : add a COmment\nsh : SHow content file\nexit : save file and EXIT\nhelp : this HELP\nh : this Help short command\n\u003c/pre\u003e\n\n## How use this tool while recording a HAR file when navigate to web site\n\nRecord a HAR file and create external csv file with create-external-file-to-har tool.\n\n![Record a HAR file and create external csv file](doc/images/browser_and_create_external_csv_save_har.png)\n\nFor Chrome Browser (**B** for Browser) : \u003cbr/\u003e\nB1) Open navigator (Chrome) \u003cbr/\u003e\nB2) Open dev tools with \u0026lt;F12\u0026gt; \u003cbr/\u003e\nB3) Tab \"Network\"  \u003cbr/\u003e\nB4) Record button is ON.  \u003cbr/\u003e\nB5) \"Preserve log\" is checked. (Optional) If needed, delete the exchanges before browsing  \u003cbr/\u003e\n   \nStart create-external-file-for-har tool (**C** for Create external file tool)  \u003cbr/\u003e\nC1) Set a file name , command : sf c:/Temp/jpetstore_transaction.csv \u003cbr/\u003e\n\u003cbr/\u003e\nC2) Create the first transaction start, command : ts welcome  \u003cbr/\u003e\nB6) Navigate to the home url in the Browser  \u003cbr/\u003e\nC3) When the page is display, end the first transaction (welcome), command : te  \u003cbr/\u003e\n\u003cbr/\u003e\nC4) Create a new transaction for future page, command : ts enter store  \u003cbr/\u003e\nB7) Click on link or click on button to navigate to store page  \u003cbr/\u003e\nC5) When the page is display, end the current transaction (store page), command : te  \u003cbr/\u003e\n\u003cbr/\u003e\nC4) Create a new transaction for future page, command : ts page3 \u003cbr/\u003e\nB8) Click on link or click on button to navigate to the page3 \u003cbr/\u003e\nC5) When the page is display, end the current transaction (page3), command : te \u003cbr/\u003e\n\u003cbr/\u003e\nC6) Create a new transaction for futur page ou form, command : ts \u0026lt;page name\u0026gt; \u003cbr/\u003e\nB9) Navigate to the page \u003cbr/\u003e\nC7) When the page is display, end the current transaction (page name), command : te \u003cbr/\u003e\n\u003cbr/\u003e\n... continue to create a transaction before navigate, navigate to the page, end the transaction ... \u003cbr/\u003e\n\u003cbr/\u003e\nBx) When navigation is finished, Save exchanges in HAR format \"Export HAR ...\" \u003cbr/\u003e\n\n## Companion tool\nThe csv file created will be used by this other tool : \"har-to-jmeter-convertor\"\nhttps://github.com/vdaburon/har-to-jmeter-convertor\n\nor this JMeter plugin \"har-convertor-jmeter-plugin\"\nhttps://github.com/vdaburon/har-convertor-jmeter-plugin\n\n![Step to create JMeter script and record from HAR file and external csv file](doc/images/browers_har_external_csv_convertor_script_record.png)\n\n## JPetstore web application\nThis example use the JPetstore from Octoperf : https://petstore.octoperf.com/\n\n## License\nLicensed under the Apache License, Version 2.0\n\n## Versions\nVersion 1.0 date 2024-05-10, First version\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvdaburon%2Fcreate-external-file-for-har","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvdaburon%2Fcreate-external-file-for-har","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvdaburon%2Fcreate-external-file-for-har/lists"}