Simple counterstring generation
Counterstring Extension
A CounterString is a string of text e.g. `*3*5*7*9*12*15*` where:
- the string is a specific length e.g. 15
- the last character in the string is an *
- the numbers before each * are the position of the *
This can act as Test Data for helping test the length allowed in forms and other data fields. If the value is truncated then you can tell from the numbers and the '*' how long the string is e.g. `*3*5*7*9*12*15` is 14 characters long because the '*' after 15 is missing.
CounterStrings are commonly used in exploratory testing.
This extension is a simple CounterString generator, which:
- displays a dialog asking for the number of characters,
- then generates a CounterString of that length
- the CounterString is logged to the dev console to allow copy and pasting,
- the extension also inserts the CounterString into the value of the field that was selected when the right click context menu was displayed
- this supports supports testing online forms.
Instructions for use:
- right click on and input field
- enter value of CounterString
- CounterString will be logged to the console (use dev tools to see it)
- CounterString will be inserted as the value of the WebElement you clicked on
Note:
- works with forms on the actual page
- this extension does not work with forms embedded in frames
This is open source and source can be found at GitHub:
- https://github.com/eviltester/counterstringjs
Read more
- the string is a specific length e.g. 15
- the last character in the string is an *
- the numbers before each * are the position of the *
This can act as Test Data for helping test the length allowed in forms and other data fields. If the value is truncated then you can tell from the numbers and the '*' how long the string is e.g. `*3*5*7*9*12*15` is 14 characters long because the '*' after 15 is missing.
CounterStrings are commonly used in exploratory testing.
This extension is a simple CounterString generator, which:
- displays a dialog asking for the number of characters,
- then generates a CounterString of that length
- the CounterString is logged to the dev console to allow copy and pasting,
- the extension also inserts the CounterString into the value of the field that was selected when the right click context menu was displayed
- this supports supports testing online forms.
Instructions for use:
- right click on and input field
- enter value of CounterString
- CounterString will be logged to the console (use dev tools to see it)
- CounterString will be inserted as the value of the WebElement you clicked on
Note:
- works with forms on the actual page
- this extension does not work with forms embedded in frames
This is open source and source can be found at GitHub:
- https://github.com/eviltester/counterstringjs
Source Manifest.json
{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 2, "name": "Counterstring", "version": "0.1", "description": "simple counterstring generation", "background": { "persistent": true, "scripts": ["js/background.js"] }, "permissions": [ "contextMenus", "activeTab" ], "icons": { "16": "icons/icon16x16.png", "48": "icons/icon48x48.png", "128": "icons/icon128x128.png" }}
Read more