Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.
Discussion List
[Help] Access Data Repository Data Source from A Message Responder Script
Hi, I'm trying to access values inside of a data repository on a Message Responder script. I have "use data source" checkbox checked. Code Below: import com.parasoft.api.*;def messageResponderResponse(context) { String dataRepoVal = context.getValue("root Data 2","AccountNumber"); Application.showMessage("DEBUG VALUE: " +…
Select text from inner element
I want to check text from an element that is inside another element. So I want to verify that text form div class="alert" is the correct one. But selecting this div from the validation tool does not work. My first though was to extract the text using javascript. So * Element locator = Use script * Language = Javascript…
Programmatically create and deploy a virtual asset using the REST API
This script will enable you to create and deploy an asset dynamically. This is useful when you want to create an asset on the fly. This uses the SOAVirt API. #Server SettingsVIRT_USER=adminVIRT_PASS=adminVIRT_HOST=localhostVIRT_PORT=9080#Workspace…
Which scripting language is used to develop Loadtest Cli Script ? can I use the shellscript ?
var scenario = "Steady Load" var base = tests/loadtester/accuracytest/tests var category = Accuracy var test-name = 1-Profile-HPS open ${base}/${test-name}.lt loadtest -minutes ${minutes} -allReports ${report-home}/%d/${category}/${test-name} ${scenario} Does parasoft loadtest works with shell script? Is anyone develop…
How can I retrieve/use the project location in a relative path to open and read/write to a text file
I am using the following Jython script to read and then update a value from a text file on my local pc, but need to be able to use a relative path to identify the file in both line 7 and 14. I have verified my PROJECT_LOC variable is: "C:/Users//File/Path/To/Workspace/Project". Any help is appreciated. Works Locally but…
Script to bypass user input automatically
I need to call a executable that requires entering a password manually after it is executed. What I want to do is use the external tool to pass in 2 parameters which one of them is the value the executable prompts. I need this to run automatically by entering the password automatically. Has anyone done this type of…
Updating CTP with a Windows Batch script
This is a simple script that will allow us to update the Continuous Testing Platform when a new WAR is released SET CTP_LOCATION=C:\parasoft\CTPSET UPDATE_FOLDER=c:\parasoft\update\CTPbackupsSET NEW_CTP_WAR=C:\Downloads\em.warREM Adjust path to 7Zip program as needed belowset THE_ZIP="c:\program files\7-zip\7z.exe"echo…