Are there any restrictions for Strings in session

20 बार देखा गया
नहीं पढ़े गए पहले मैसेज पर जाएं

E. Ulrich Kriegel

नहीं पढ़ी गई,
24 अप्रैल 2014, 4:49:33 am24/4/14
ईमेल पाने वाला gat...@googlegroups.com
Hi there,
i use Gatling 2 Nightly build.

If i store a string "foo#1" under the name "baz" in the session object (a println shows that it is really there) and try to access it by "${bas}", only "foo" is returned without "#1".

Are there any restrictions for Strings to take into account?

Thanks in advance
--Ulrich

Nicolas Rémond

नहीं पढ़ी गई,
24 अप्रैल 2014, 4:50:45 am24/4/14
ईमेल पाने वाला gat...@googlegroups.com
bas != baz ?

cheers
Nicolas


--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

E. Ulrich Kriegel

नहीं पढ़ी गई,
24 अप्रैल 2014, 4:53:55 am24/4/14
ईमेल पाने वाला gat...@googlegroups.com
typo in my question, "${baz}" is used ;)

Nicolas Rémond

नहीं पढ़ी गई,
24 अप्रैल 2014, 5:02:48 am24/4/14
ईमेल पाने वाला gat...@googlegroups.com
There isn't any restrictions. 
What does your scenario looks like ?
मैसेज मिटा दिया गया है

Nicolas Rémond

नहीं पढ़ी गई,
24 अप्रैल 2014, 5:05:12 am24/4/14
ईमेल पाने वाला gat...@googlegroups.com
Can't send attachement in Google Groups.
Can you send it to my private email ?


On Thu, Apr 24, 2014 at 11:04 AM, E. Ulrich Kriegel <ulrich....@gmail.com> wrote:

E. Ulrich Kriegel

नहीं पढ़ी गई,
24 अप्रैल 2014, 5:10:35 am24/4/14
ईमेल पाने वाला gat...@googlegroups.com
I get a JSON-Object as response from a Rest call which contains a part of an URL to get further information.
This information has the form similar to "foo#1" and is stored in the session object under key "baz".

if I try a get with url "someUrl/${baz}" to get the surplus information Gatling uses "someUrl/foo" instead 
someUrl/foo#1

As a test I replaced foo#1 by foo_1 and everything works fine.  

Nicolas Rémond

नहीं पढ़ी गई,
24 अप्रैल 2014, 5:25:07 am24/4/14
ईमेल पाने वाला gat...@googlegroups.com
With this line:
  .exec(http("Home").get(new java.net.URI("http://localhost:5000/#1")))

I'm getting the following log:

11:19:48.214 [INFO] i.g.h.a.HttpRequestAction$ - Sending request=Home uri=http://localhost:5000/: scenario=Basic Scenario, userId=1122385713565746701-9


There is a bug in the URI handling. 



E. Ulrich Kriegel

नहीं पढ़ी गई,
24 अप्रैल 2014, 5:50:57 am24/4/14
ईमेल पाने वाला gat...@googlegroups.com
I tried URI-Handling in Java, it's IMHO  correct.
A "#" designates an URI-fragment and http://localhost/foo#1 is stored correctly in a URI-Object and the toString-Method returns the correct string http://localhost/foo#1

Maybe get does not handle fragments

Excilys

नहीं पढ़ी गई,
24 अप्रैल 2014, 6:03:59 am24/4/14
ईमेल पाने वाला gat...@googlegroups.com
Clients MUSTN'T send fragment to the server, as per HTTP.

E. Ulrich Kriegel

नहीं पढ़ी गई,
24 अप्रैल 2014, 6:11:28 am24/4/14
ईमेल पाने वाला gat...@googlegroups.com
Hi Stéphane, and thanks for the hint. I will send a CR to the designer of the rest api to make it standards compliant.
सभी प्रषकों को उत्तर दें
लेखक को उत्तर दें
आगे भेजें
0 नया मैसेज