jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Schumacher <felix.schumac...@internetallee.de>
Subject Re: Not able to handle generated device token.
Date Wed, 27 May 2015 19:19:12 GMT
Am 27.05.2015 um 09:22 schrieb Pravesh Prajapati:
> Hi Sir,
>
>
> I have extracted the token & passed it to subsequent, but still that same
> request fails & the error I am getting into response against that request
> is,
>
> org.apache.http.client.ClientProtocolException at
> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:909)
> at
> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
> at
> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:481)
> at
> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:298)
> at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
> at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1105)
> at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1094)
> at
> org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:429)
> at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:257) at
> java.lang.Thread.run(Unknown Source) Caused by:
> org.apache.http.ProtocolException: Transfer-encoding header already present
Look, if you set a header "Transfer-encoding" explicitly in your test 
script. Try, if it helps if you remove it.

Regards
  Felix
> at org.apache.http.protocol.RequestContent.process(RequestContent.java:93)
> at
> org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:109)
> at
> org.apache.http.protocol.HttpRequestExecutor.preProcess(HttpRequestExecutor.java:176)
> at
> org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:518)
> at
> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
> ... 9 more
>
>
>
> but if I remove that Sample it works fine.
>
> Please suggest how to handle this issue or should  I remove that sample
> itself.
>
>
> Thanks in advance.
>
> On Wed, May 27, 2015 at 3:15 AM, Pravesh Prajapati <
> prajapati.pravesh@gmail.com> wrote:
>
>> Sir,
>> I mean to say that the device token generated in my native app is device
>> specific.
>> how could I handle this.
>>
>> On Wednesday, May 27, 2015, Felix Schumacher <
>> felix.schumacher@internetallee.de> wrote:
>>
>>> Am 26.05.2015 um 16:15 schrieb Pravesh Prajapati:
>>>
>>>> Sir,
>>>> I have one query,
>>>> https://android.clients.google.com/c2dm/register3
>>>> refer request1.png for device regestration.
>>>>
>>> To which image do you refer?
>>>
>>> A quick google search for c2dm gives me the following warning:
>>>
>>> "I*mportant:* C2DM was officially deprecated on June 26, 2012, and will
>>> be shut down completely as of July 30, 2015."
>>>
>>> If you really want to test C2DM you have to be quick :)
>>>
>>>
>>>> https://api.gatherdigital.com/apps/1949/notification_registrations
>>>> refer request2.png for generated token.
>>>>
>>>> should I apply above mentioned regular expression in 1st request & in
>>>> second request.
>>>>
>>>> Sir,
>>>> But the token generated for 3 scripts which I have created from Motorola
>>>> device (android v5.0)
>>>> is same for all three scripts.
>>>> token generated :-
>>>>
>>>> {"device_token":"APA91bFDLyrJLbLY7zqrbNh-l7CJAKJqFbVSHsTWT7YGDNQV3HUl-OeMkEA5jV2TEvc5ZLJ9owrQvXimJ8gRAYPjl9gGrLWejVoZSL8aDPzbQ2oLhpvy2agPk8GZIfhMsIMwDFcTZ_cke-ic0yoR9EQ73ndQAkdh-w","platform":"android"}
>>>> ----for Motorola device
>>>>
>>>>
>>>> &
>>>>
>>>>   I have used another device to generate scripts nexus(android v5.0)
>>>> is also same for all three scripts.
>>>> token generated
>>>>
>>>>
>>>> {"device_token":"APA91bFFxd8Ur8Hqv5GeatukSZH2i_6MiKfWhx5HJ1-nUvCvm9nXXAqd0ZnOmau2bvRn_4FQ8bhAPlKMrcEFhVqWvtdgB30oUATqBamL9PBvpS3UKskDeRhZ3soCY_xjImSLLwh5azXbK0WLYnSvC6GPVc4VoPSMQg","platform":"android"}
>>>>
>>>> --for nexus.
>>>>
>>>> This mean that generated token is device specific.
>>>> but the token generated for the scripts have same token, but my scripts
>>>> fails on that step.
>>>> Please provide solution.
>>>>
>>> It is not clear to me, what you have done, or what you wanted to do.
>>>
>>> Could you explain it in a few words?
>>>
>>> Regards
>>>   Felix
>>>
>>>
>>>> Thanks in advance.
>>>>
>>>> On Tue, May 26, 2015 at 1:50 PM, ZK <stevesenior69@gmail.com <mailto:
>>>> stevesenior69@gmail.com>> wrote:
>>>>
>>>>      Hi,
>>>>      try this:
>>>>
>>>>      "device_token"[^:]+:(.+?),"platform"
>>>>
>>>>
>>>>
>>>>      ZK
>>>>
>>>>
>>>>
>>>>      --
>>>>      View this message in context:
>>>>
>>>> http://jmeter.512774.n5.nabble.com/Not-able-to-handle-generated-device-token-tp5722512p5722516.html
>>>>      Sent from the JMeter - User mailing list archive at Nabble.com.
>>>>
>>>>      ---------------------------------------------------------------------
>>>>      To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>>>>      <mailto:user-unsubscribe@jmeter.apache.org>
>>>>      For additional commands, e-mail: user-help@jmeter.apache.org
>>>>      <mailto:user-help@jmeter.apache.org>
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Regards,
>>>> Pravesh prajapati.
>>>> Mob:-9702600170
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>>>> For additional commands, e-mail: user-help@jmeter.apache.org
>>>>
>>>
>> --
>> Regards,
>> Pravesh prajapati.
>> Mob:-9702600170
>>
>>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Mime
View raw message