• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Junit and Jmeter testing issue

 
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I am trying perform Jmeter distributed testing on a Server which is hit by three Jmeter Servers(Clients) and Jmeter Controller(controlling the three Jmeter Server).
I wrote a JUnit Testcase which sends a request for card information with card number as parameter.I am instantiating the Request class with the card number as string argument

Request r= new Request("31232313232");

it works fine when I am running the Jmeter. Now I have to send a Request with random card number( mincard, maxcard numbers) in the Junit test class. So wrote it as

Request r= new Request(String.valueOf(Math.random()*100+base number));

and ran the Jmeter test. It gives me an error.Any help would be appreciated.Thank you.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic