Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to update Pass/Fail in Excel using Vbscript
#4
Not Solved
Hi Vinod,

Can u please explain in little bit detail. Bcoz i'm getting output as 'Running'.

I use the following steps to update the result in excel:
1) I have written a function called ResultEntry() and saved it inside a VB file.
2) I call this function at the end of each test case.

Here is the ResultEntry function

Code:
Public Function ResultEntry(TestCaseId, TestCase, Desc, Result)
   MyTime=Now
   MyFile.Write(TestCaseId)
   MyFile.Write(",")
   MyFile.Write(TestCase)
   MyFile.Write(",")
   MyFile.Write(Desc)
   MyFile.Write(",")
   MyFile.Write(Result)
   MyFile.WriteLine("")
End Function

And I call this function at the end of the each test case inside the If loop like:

Code:
If (Pass condition) Then
ResultEntry "ID", "Test Case", "Description", "Pass"
Else
ResultEntry "ID", "Test Case", "Description", "Fail"

Please let me know if I'm wrong or even if I can improve the steps what i'm following.
Reply


Messages In This Thread
RE: How to update Pass/Fail in Excel using Vbscript - by ritesh - 07-06-2009, 08:14 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is VBScripting disabled in Office 365 update? soumyarani 0 1,553 12-19-2020, 12:37 PM
Last Post: soumyarani
  how can i click a macro button in excel using vbscript arpan 1 3,832 10-03-2017, 06:27 AM
Last Post: supputuri
  Pass reference to datatable into function smallsteve 2 2,141 09-28-2017, 09:18 PM
Last Post: smallsteve
  UFT 12.02 Compatibility for IE 11.0 : Fail to identify the defined Object Amruta_121 9 11,289 01-11-2016, 12:45 PM
Last Post: vinod123
  Can you please help me in QTP DP to pass the variable name anshika.agarwal 1 2,803 09-04-2014, 06:43 PM
Last Post: anshika.agarwal

Forum Jump:


Users browsing this thread: 2 Guest(s)