WebSorcery / testcase-generator

automates the process of generating test cases for cp. It takes input data, specified constraints, and test case conditions, and produces a set of test cases that exercise different paths and functions of the software application under test.
https://testcase-generator.vercel.app
MIT License
0 stars 6 forks source link

Implement Email Notifications for Test Case Generation #10

Closed ank1traj closed 8 months ago

ank1traj commented 9 months ago

Implement an email notification system to automatically send emails to users once test cases have been generated. This will involve integrating an email service into our backend to notify users about the completion of the test case generation process.

singhcoder694 commented 8 months ago

I would like to work on this... @ank1traj

ank1traj commented 8 months ago

Assigned @singhcoder694

singhcoder694 commented 8 months ago

Users email would be needed , so from where on website we would get ? @ank1traj

ank1traj commented 8 months ago

We've to integrate the authentication module @singhcoder694. Already, created the issue but no one is working right now. If you want then you can work on that issue and then come to this.

https://github.com/WebSorcery/testcase-generator/issues/9

singhcoder694 commented 8 months ago

@ank1traj I have made PR for #9 , after your final review I can start to work on this issue so that final integration can be done....

singhcoder694 commented 8 months ago

In this mail should reach to user in fail cases also.... i.e. if any error comes that should also reach in form of erro otherwise success message would reach user. Is it @ank1traj

ank1traj commented 8 months ago

Yes @singhcoder694

singhcoder694 commented 8 months ago

May I do this in typescript since there is nothing available for mailing using js on docs. @ank1traj

ank1traj commented 8 months ago

There are @singhcoder694. See nodemailer.

singhcoder694 commented 8 months ago

There are @singhcoder694. See nodemailer.

Got it sir thanks for this I was doing it using resend🙂

ank1traj commented 8 months ago

@singhcoder694 few issues I found while testing the feature. Do you want to work on the same?

  1. Even if the email is not sent it's getting a success message about Values generated successfully and mail sent!. It shouldn't be like this.
  2. Email not sent error is coming twice.
  3. Mail is not getting sent. Getting this error in API call https://testcase-generator-rose.vercel.app/api/confirm
singhcoder694 commented 8 months ago

@ank1traj 1.) That I will solve within minutes. 2.) I will solve it by tommorrow. 3.) It was coming but few times maybe due to call limit. But mostly mail was sent.

ank1traj commented 8 months ago

Sure, take your time. And, please have a look because due to call limit it should give 429 not 405. There is some issue in the API. I will check it too and will figure out why it's giving 405.

singhcoder694 commented 8 months ago
Screenshot 2023-12-25 170446 Screenshot 2023-12-25 170455

Look at these I sent to myself while testing...

ank1traj commented 8 months ago

Can you do one thing while working on this? Try with both zoho and gmail and also with attachment and without attachment.

singhcoder694 commented 8 months ago

Hmm, Ok sir got it I will try to do it by tommorow... 🫡

singhcoder694 commented 8 months ago

@ank1traj resolved error by pr #38

ank1traj commented 8 months ago

@singhcoder694 No, it's still not fixed. let's sit together tomorrow and work on this and fix this asap.

ank1traj commented 8 months ago

@singhcoder694 Fixed the issue.