Tag Info

New answers tagged

1

1) Here's a good guide to send a single push notification using Python (look at "Step Five" and "Step Four" sections). 2) In order to send multiple messages at once you can use the simple bash script, like this for run in {1..10}; do python ~/test_push.py done P.S. More solutions: Instead of python script you can use this bash script for ...


1

There are many, many approaches, each having its pros and cons when it comes to simplicity of reading, easiness of modifying data, easiness of modifying data schema (refactoring), easiness of parsing data, type of data you want to model. If you were I would experiment. I would pickup the simplest approach (properties) to see if fits your problem. Here's the ...


1

First of all:There is no best approach. There are just several approaches and you have to decide which one is your favorite. What is the best approach to make test data configurable ? Through XML file or properties file or any other way. But must not be hard coded. I like it to put the test data in properties files, read the data and put them ...


0

Sounds like you want to do Data Binding (also called Data Driven Testing). You can parse a CSV file and have your test run as many times as there are rows in the file. Each row can have columns for username and password. You will need to add appropriate logging so that when a test 'fails' you know which iteration it failed on. How you read in the csv file ...


0

Add XPath Extractor as a child of the request which returns that HTML Configure it as follows: If response is not XHTML-compliant check Use Tidy box Reference Name: arbitrary JMeter Variable name, i.e. ID XPath Query: //a[text()='TestIndia1']/ancestor::*/tr/@id Refer the extracted value as ${ID} where required. Useful links: XPath 1.0 Language ...


0

You can take a look at 5 Ways To Launch a JMeter Test without Using the JMeter GUI guide to learn how to run existing JMeter test scenario from Java code and how to create a JMeter test purely in Java. Also refer jmeter-from-code snippet for working example. In regards to implementing assertions, you can create a simple test plan i.e. having one request ...


0

Please refer the below link. Thought this might work. https://javaworks.wordpress.com/2013/06/28/beanshell-assertion-in-jmeter/


0

You can use CSV Data Set Config to read the information from .csv file. If the file has to be Excel and you cannot convert it to CSV you can still get information from it but it will be a little bit tricky. See How to Extract Data From Files With JMeter to learn how to do it.


1

Ramp-up period is the time required for all threads representing virtual users to start. I.e: This is configuration of test plan: Number of Threads (users): 100 Ramp-up Period (in seconds): 10 Loop Count : No <== It means that every 0.1 second (=ram-up period/number of threads) a new thread starts giving 100 running threads after 10 seconds. ...



Top 50 recent answers are included