How to send QTP test results to an email...(with out using
Quality Center)?
Answer Posted / allan
''' use Raj's code above (#5) modifying this line
If (Attachment <> "") Then
Mail.Attachments.Add(Attachment)
End If
'''
set listattach = wildFileList(".*4.*jpg")
for each n in listattach
Mail.Attachments.Add(n)
next 'n
Function wildFileList(regx) ', fext)
'step 1 string list of filenames
Dim fso, tmp, tmp1, folder, File, regEx, Match, Matches, n,
fext
fext = right(regx,3)
Set fso = CreateObject("Scripting.FileSystemObject")
Set folder = fso.getfolder(".")
For Each File in folder.Files
If fso.GetExtensionName(File)= fext Then 'regx & fext
tmp = File & vbcrlf & tmp 'regx & fext & vbcrlf & tmp
End If
Next
'step 2 exec regex on raw string
Set regEx = New RegExp ' Create a regular expression.
regEx.Pattern = regx ' Set pattern.
regEx.IgnoreCase = True ' Set case insensitivity.
regEx.Global = True ' Set global applicability.
Set Matches = regEx.Execute(tmp) ' Execute search.
set wildFileList = Matches
End Function
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what is the difference between modular framework & datadriven framework
How can you exit from an action?
How many ways is to parameterize the value?
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
What are the disadvantages of recording test cases in qtp?
How does quicktest professional identifies the object in the application?
How to capture dynamic values in load runner and how Each of the captured values are to be written to a text file (c:\temp\LoadRunner1.txt)
What are the data types in qtp?
This is Karthic and my mail id is karthic.venkitapathi@gmail.com, please give me an idea to crack qtp 10
Explain object spy in qtp.
In an interview, what r the general questions asked in QTP? pls give me anwser to this question?
What is difference between design time and run time data table?
How to analyzing test results using quicktest professional?
Explain the use of action split in qtp?
What is a quick test professional?