This document shows examples of the scripting language interpreted by the TextScriptRunner. Note the use of variables (SetVariable) and Include
View Script
Script: 472 User: 3 File: testLogin.txt Description: test login to prod
Contents
SetVariable base_url http://textscriptrunner.com/
browse ${base_url}
SetWebOption CookiesEnabled true
click login
set email tester42@textscriptrunner.com
set password **************!
click submitButton
Run This Script
� 2022-2025 TextScriptRunner
| Command | Status | Result |
|---|---|---|
| SetVariable base_url http://textscriptrunner.com/ | PASS | |
| browse ${base_url} | PASS | |
| SetWebOption CookiesEnabled true | PASS | |
| click login | PASS | |
| set email tester42@textscriptrunner.com | PASS | |
| set password ***********! | PASS | |
| click submitButton | PASS |
Include testLogin.txt clicklink viewScript?scriptID=1
| Command | Status | Result |
|---|---|---|
| Include testLogin.txt | PASS | Included script testLocalLogin.txt |
| connect http://textscriptrunner.com/ | PASS |
Welcome to TextScriptRunnerTextScriptRunner - making testing easy since 2001.The first version was created in 2000/2001 for a project at ThoughtWorks. We created it to help Business Analysts write and execute tests for a large leasing application. The second version was created in 2005 for Harris Corporation to help test a large Java application to monitor cell phone networks - NetBoss. The third version is being created based on what we learned building the first 2 versions and adds support for web page testing.
© 2022-2025 TextScriptRunner
|
| ClickLink /login | PASS |
LoginEnter user name and password:Common Problems:
© 2022-2025 TextScriptRunner
|
| RoleID | Role Name |
|---|---|
| 2 | ROLE_USER |
| ScriptID | UserID | Filename | Description | View Script | Run Script | Delete Script |
|---|---|---|---|---|---|---|
| 1 | 2 | testExecutionerConfigFileForCommandEchoMultipleCommands.txt | test mult cmds | View | Run | Delete |
| 40 | 2 | teslLogin.txt | test login | View | Run | Delete |
| 61 | 2 | testLocalTestPage.txt | test local test page | View | Run | Delete |
| 62 | 2 | testLocalComment.txt | test comment verb | View | Run | Delete |
| 68 | 2 | testLocalViewScript.txt | local view script | View | Run | Delete |
| 76 | 2 | testLocalRunScript.txt | local run script | View | Run | Delete |
| 77 | 2 | localIncludeAll.txt | local IncludeAll | View | Run | Delete |
| 79 | 2 | testLocalContents.txt | test local contents | View | Run | Delete |