GithubHelp home page GithubHelp logo

Comments (9)

tisba avatar tisba commented on September 27, 2024 1

Since tsung uses an XML configuration, you need to encode the \n properly (e.g. using 
).

from tsung.

gtokvoth avatar gtokvoth commented on September 27, 2024

Thanks for your reply.

I have tried that and it doesn’t work. It always seems to strip out the CR or LF.

Here is what I have tried.

echo message

\n

echo message \n

CDATA

I have also tried CDATA with an actual line break in the editor as well as ( ) and ( ).

I can provide wireshark traces if you want.

I am attaching my configuration file for your review.

Again thanks for your reply.

Kevin.

From: Sebastian Cohnen [mailto:[email protected]]
Sent: Saturday, August 15, 2015 3:25 AM
To: processone/tsung [email protected]
Cc: Kevin Voth [email protected]
Subject: Re: [tsung] Unable to send a line feed in websoscket request (#121)

Since tsung uses an XML configuration, you need to encode the \n properly (e.g. using ).


Reply to this email directly or view it on GitHubhttps://github.com//issues/121#issuecomment-131312350.

from tsung.

gtokvoth avatar gtokvoth commented on September 27, 2024

In addition I an using Tsung version 1.6.0 and it is installed on openSUSE version 13.1.

Thanks …

From: Sebastian Cohnen [mailto:[email protected]]
Sent: Saturday, August 15, 2015 3:25 AM
To: processone/tsung [email protected]
Cc: Kevin Voth [email protected]
Subject: Re: [tsung] Unable to send a line feed in websoscket request (#121)

Since tsung uses an XML configuration, you need to encode the \n properly (e.g. using ).


Reply to this email directly or view it on GitHubhttps://github.com//issues/121#issuecomment-131312350.

from tsung.

gtokvoth avatar gtokvoth commented on September 27, 2024

Just wondering if you had any thoughts on the issue I am having.

Thanks …

Kevin.

From: Sebastian Cohnen [mailto:[email protected]]
Sent: Saturday, August 15, 2015 3:25 AM
To: processone/tsung [email protected]
Cc: Kevin Voth [email protected]
Subject: Re: [tsung] Unable to send a line feed in websoscket request (#121)

Since tsung uses an XML configuration, you need to encode the \n properly (e.g. using ).


Reply to this email directly or view it on GitHubhttps://github.com//issues/121#issuecomment-131312350.

from tsung.

tisba avatar tisba commented on September 27, 2024

No, I'm not using websocket tests on a regular basis and I have very limited time currently to go through the tsung code. As far as I remember there is nothing special in terms of data handling for websockets, so I thought this would just be an XML encoding issue.

Maybe @nniclausse can help?

from tsung.

nniclausse avatar nniclausse commented on September 27, 2024

the string was explicitly cleaned by tsung ... i removed the faulty line. Can you try the latest git version?

from tsung.

nniclausse avatar nniclausse commented on September 27, 2024

tested with:
echo test message

result:
0x0030: 1e0d dbd6 8112 6563 686f 2074 6573 7420 ......echo.test.
0x0040: 6d65 7373 6167 650a message.

from tsung.

gtokvoth avatar gtokvoth commented on September 27, 2024

Excellent, thanks.

I will try and test it tonight.

From: Nicolas Niclausse [mailto:[email protected]]
Sent: Wednesday, August 26, 2015 6:05 PM
To: processone/tsung [email protected]
Cc: Kevin Voth [email protected]
Subject: Re: [tsung] Unable to send a line feed in websoscket request (#121)

tested with:
echo test message

result:
0x0030: 1e0d dbd6 8112 6563 686f 2074 6573 7420 ......echo.test.
0x0040: 6d65 7373 6167 650a message.


Reply to this email directly or view it on GitHubhttps://github.com//issues/121#issuecomment-135187632.

from tsung.

gtokvoth avatar gtokvoth commented on September 27, 2024

Yes that worked.

What about encoding the linefeed? I tried but that did not work.

Thanks for all your help.

Kevin.

From: Nicolas Niclausse [mailto:[email protected]]
Sent: Wednesday, August 26, 2015 6:05 PM
To: processone/tsung [email protected]
Cc: Kevin Voth [email protected]
Subject: Re: [tsung] Unable to send a line feed in websoscket request (#121)

tested with:
echo test message

result:
0x0030: 1e0d dbd6 8112 6563 686f 2074 6573 7420 ......echo.test.
0x0040: 6d65 7373 6167 650a message.


Reply to this email directly or view it on GitHubhttps://github.com//issues/121#issuecomment-135187632.

from tsung.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.