How To Automate Online Workflow? - automation

I've tried to research this topic and found resources like selenium, but I'm not entirely sure how to do what I need.
Basically here is the workflow:
A user completes a form on our website
The form inputs get emailed to me
I login to the related database system online (it's always the same) to produce the necessary report based on there request.
I then print a PDF version of the report and email it back to them with our email template (customized based on some of their inputs on the website)
Is there a way to automate this? Maybe even run it on a server so users can get the reports even when my computer is off?
Any help would be great!
Thanks.

If you are not able to use API of the resource which gives you PDF file...
I'd go like this:
Configure Jenkins CI on a server.
When a user completes a form - send HTTP POST request to Jenkins CI for building parametrized job (using data from user).
Jenkins job runs the Selenium tests to get desired PDF file.
Using Jenkins email notification plugin send customized email with PDF file from previous step.

Related

Issue in file upload in Jmeter script

As unable to record the application through JMeter recorder (encountered 401 Unauthorized while recording login), used Blazemeter Chrome plugin to record the script. But file upload is not getting successful during re-run. I have tried checking/unchecking "Use multipart/formdata" , provided details in File upload section of the transaction, used Java implementation but no luck.
enter image description here
enter image description here
We cannot "suggest" anything without seeing the:
Response Data and headers - can be observed using View Results Tree listener
Request Data and headers - the same listener can show you this
Values of any JMeter Variables used. Can be figured out from the request data but it's more convenient to use Debug Sampler
The most common reason for not being able to replay the recorded test script is missing or improperly implemented correlation so ensure that your test is doing what it supposed to be doing since the very first request.
The approach of "checking/unchecking" and switching to different implementations is not very good, you should rather use a sniffer tool to capture the requests originating from JMeter and from the real browser, compare them and amend JMeter's configuration unless the requests would be exactly the same (apart from dynamic parameters which need to be correlated)

Cypress mochawesome reporter Report - how to send report

We are currently running the cypress tests on production and reports are being generated at the cypress dashboard . but my team wants me to use mochawesome reports . I have mochawesome implemented without any problem.
But I want to know how to share these HTML reports with my team :
Can I upload the HTML reports on slack channel ?
Can I automate such in a way that at the end of test run , HTML reports are sent as an email?
Can I share these HTML reports on notion?
Please suggest me what should be easiest solution to this.

I need some maybe autotests to check that the application is working, and if system doesn't work send message

Main reason: I need to check every hour that the application is working (requests or via ui), if errors or pages are not loaded, then I need to send a message to telegram (for example), with the ability to view the report (errors, logs, screenshots, all possible information)
Maybe you can recommend some tools javascript or java. It preferably ui tests (but api can be too). I think, maybe something like java test with selenium and allure and set up teamcity, but maybe there are other more comfortable tools.

How to send protractor report to different emails generated using protractor-html-screenshot-reporter

I am using protractor-html-screenshot-reporter for report generation through protractor. It is providing me the html report.
But how can I send the report to different email ID's as attachment to my other team members?
Or is there any other plugin of protractor for email report generation?
It is not something I would solve on the protractor side. Delegate the task to your Continuous Integration server, e.g. jenkins or Bamboo or smth else.
Generate something your CI can understand - a test report in JUnit XML format with the help of JUnitXmlReporter from jasmine-reporters and configure your CI to send an email(s) when your tests fail.

Is there any error checking web app cralwers out there?

Wondering if there was some sort of crawler we could use to test and re-test everything when changes are made to the web app so we know some new change didn't error out any existing pages. Or maybe a web browser with a million frames so I could scroll down and look through the tiles to find any error pages... you get the idea.
Selenium will let you test forms and write and automate scripts. This is a firefox add in and is quite powerful. You can manually write the scripts and also "record" them
Jmeter will let you create scripts and then run them as multiple users to test and load test web sites as a whole. This a stand alone application and can mimic multiple users and randomise access etc. and loading to stress test the application.
You could presumably use both to error test by monitoring the output logs from them to catch errors.
Both will allow you to authenticate to log on to sites.