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


Please Help Members By Posting Answers For Below Questions

what is the difference between modular framework & datadriven framework

1597


How can you exit from an action?

612


How many ways is to parameterize the value?

619


Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.

2875


What are the disadvantages of recording test cases in qtp?

597






How does quicktest professional identifies the object in the application?

555


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)

1734


What are the data types in qtp?

667


This is Karthic and my mail id is karthic.venkitapathi@gmail.com, please give me an idea to crack qtp 10

1507


Explain object spy in qtp.

587


In an interview, what r the general questions asked in QTP? pls give me anwser to this question?

1419


What is difference between design time and run time data table?

587


How to analyzing test results using quicktest professional?

573


Explain the use of action split in qtp?

567


What is a quick test professional?

633