Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Testing streaming service (like selenium) [closed]

Good afternoon.

I'm testing my company's streaming service, which works like twitch.

The task is as follows: Log in to your account and simulate viewing the stream ( and chat)

I was thinking of writing code in selenium. But as far as I understand, in this case you will have to use your own driver for each thread. I'm afraid it will take up too much memory.

Now the question. It's true? Is there a way to avoid this? What methods would you recommend to solve this problem?

I just came up with the idea to try not drawing videos to save resources. But there is one caveat here, so that the streaming service doesn't think I'm a bot. In other words, I have to constantly get it, but not draw it. This won't work with selenium.

The question is as follows: is it possible to send login data to the form and "view" the stream programmatically in Java? Which libraries should I use?

Can you recommend the necessary libraries with links to the functionality I need?

like image 308
WBLord Avatar asked Sep 20 '20 22:09

WBLord


People also ask

Is Selenium end-to-end testing?

What you can achieve with a codeless Selenium tool. Test automation that works across technologies, and that doesn't use any code means end-to-end testing that simulates real user experiences can be created fast, and can be scaled to enable quality delivery at speed.

When should you not use Selenium?

1. Windows apps Testing. As Selenium WebDriver is specifically used for automated testing of web applications, we cannot use it for windows based applications. For example, if we want to automate tests for a Windows application, such as a native 'Calculator', it is not possible via Selenium.


2 Answers

You can use a service for cloud-hosted testing for this, you will not have to care about the testing infrastructure then. Some services allow you to use Selenium in the test scripts, so test creation will be similar to a local testing experience. Here is a link to a service that will allow you to achieve what you need and you can run some tests for free there. Also here is a step-by-step guide to create and set your test.

like image 93
Pāvels Stepanovs Avatar answered Oct 20 '22 22:10

Pāvels Stepanovs


The easiest way to achieve this would be to use Selenium Grid with TestNg. As long as you need to validate the front end, selenium is the tool, if not 100%, you can simple test using API calls:

  1. Log in via API calls
  2. Perform a get on desired page and use a html parser to make some validations regarding the front end call
  3. API calls to check the chat
like image 1
Razvan Avatar answered Oct 20 '22 21:10

Razvan