The Wayback Machine - https://web.archive.org/web/20200915095840/https://github.com/processone/tsung/issues/355
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elixir as a test scripting language #355

Open
ghost opened this issue Jul 5, 2019 · 4 comments
Open

Elixir as a test scripting language #355

ghost opened this issue Jul 5, 2019 · 4 comments

Comments

@ghost
Copy link

@ghost ghost commented Jul 5, 2019

We've started an Elixir book group in a large British media organisation. We are trying to get people using Elixir. Tsung appeals obviously because of BEAM processes and the ability to scale (many machines). We'd like to be able to write our tests in Elixir and not XML. Not familiar with Erlang, else I'd have a go myself.

@tisba
Copy link
Collaborator

@tisba tisba commented Jul 5, 2019

I'm not sure if I see a question here :)

"Tests" in Tsung are declarative and expressed in XML, that being said, you can create a XML generator using Elixir. But that raises the question of what could be gained by that.

There is currently no direct way to provide the declaration in another format, but that could be a doable project, if you like to contribute.

Does this answer your question?

@ghost
Copy link
Author

@ghost ghost commented Jul 5, 2019

We could use a generator, but then we have two sources. XML is prohibitive and FP itself is declarative. I think they'd be a preference for scripting (Locust, for example gets a lot of traction) and complex tests are difficult to read in XML. But I know it was a big ask. I'll do a crash course in Erlang and see what I can do. I was also thinking we could tail some logs or something and use InfluxDB as a datasource for real time graphing in Grafana.

@ghost
Copy link
Author

@ghost ghost commented Jul 5, 2019

You're parsing different protocols maybe start off with HTTP?

@tisba
Copy link
Collaborator

@tisba tisba commented Jul 5, 2019

I understand the motivation, and I see a similar benefit from having a more dynamic way of programming a test case. But unfortunately that might be a significant undertaking from what I can tell :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.