I have written a vbscript to send mail to a test account. I would like to use the pop or imap test to check the contents.
I would like to see if the mail gets to the mailbox by checking the number of emails in the inbox.
I would like to make the test dependant on an expression like :
('%::emailtest::LastReply%'<"%::emailtest::Reply_Integer%+1")
Basically if the email count is LastReply+1 then its ok otherwise it didnt make it for some reason.
Unfortunatly the expression test is run first? before the test? I need it to do an expression AFTER the pop test but before it sends an ok or bad it needs to check the expression.
How can I do this??
Thanks
Bob
smtp full send test help
You should setup script test as master for IMAP test. In this case IMAP test will be performed after script test (that sends e-mail).
Then you may use expression like %LastReply% < %Reply%. But I think you should use this expresion for an action (not for the test) that is assigned to IMAP test item.
If you want to use this expression for test item, you should setup 3rd test:
- script test sends e-mail
- IMAP test checks mailbox
- 3rd test uses expression to check result of the IMAP test (%::IMAPtest::LastReply% < %::IMAPtest::Reply%)
BTW: if you have script that sends e-mail, probably the same script can check for result?
Regards
Alex
Then you may use expression like %LastReply% < %Reply%. But I think you should use this expresion for an action (not for the test) that is assigned to IMAP test item.
If you want to use this expression for test item, you should setup 3rd test:
- script test sends e-mail
- IMAP test checks mailbox
- 3rd test uses expression to check result of the IMAP test (%::IMAPtest::LastReply% < %::IMAPtest::Reply%)
BTW: if you have script that sends e-mail, probably the same script can check for result?
Regards
Alex