The online community for software testing & quality assurance professionals
 
 
Calendar   Today's Topics
Sponsors:
Lost Password?

Home
BetaSoft
Blogs
Jobs
Training
News
Links
Downloads



Testing Tools >> HP Functional Testing / Mercury QuickTest Pro / QTP

Pages: 1
Krrishna
Member


Reged: 11/11/07
Posts: 200
Loc: Beautiful 'INDIA'.
Connect to QC in VBA, update status for testcase ?
      #467029 - 03/15/08 03:53 AM

Hi,

In my project we have to update (status as Passed or Failed) the testcase execution results for a particular test case in a test set from TestLab of Quality Cneter 9.2.I am using Excel Macros to connect to Quality Center 9.2.I am using OTA API classes of Quality Center 9.2 to connect to it.


The problem we are facing is when we set the status of testcase to Passed or Failed directly Its not reflecting to step level .We can only see the overall status as passed or failed whichever we set.At step level the status is still No Run .

And also in some test cases we have to set the status in a testcase for some steps as passed and for some other as failed.In this case how do i do that.


I did make a search in the forum but i didnt find anything helpful regarding this query.

It would be really greatful if somebody can help me on this?Many Thanks in Advance.

The code that i have used at testcase level is
theTest.Status = "Passed"
theTest.Post

theTest is an object i filtered in TestSet with the name of the Test or test case.
I cannot post the full code here.

--------------------
Regards,
Krrishna

Edited by Krrishna (03/15/08 04:07 AM)


Post Extras: Print Post   Remind Me!   Notify Moderator  
Krrishna
Member


Reged: 11/11/07
Posts: 200
Loc: Beautiful 'INDIA'.
Re: Connect to QC in VBA, update status for testcase ? [Re: Krrishna]
      #467427 - 03/17/08 10:57 AM

Is there any class and/or methods to select "Pass All" and "Pass Select" from API's of Quality Center?I am trying hard to do this.

Nowhere i found any solution.

Any answers for this query and for my previous query?

--------------------
Regards,
Krrishna


Post Extras: Print Post   Remind Me!   Notify Moderator  
Krrishna
Member


Reged: 11/11/07
Posts: 200
Loc: Beautiful 'INDIA'.
Re: Connect to QC in VBA, update status for testcase ? [Re: Krrishna]
      #470023 - 03/26/08 10:54 AM

hi all,

I was able to resolve both the issues after i contacted QC Admin.It was an issue with the priviliges.Nothing wrong wit h my code.

I have used QC API's to work with Quality Center using vb scripting.WE can update the status at test case level and also at step level.



--------------------
Regards,
Krrishna

Edited by Krrishna (03/26/08 10:56 AM)


Post Extras: Print Post   Remind Me!   Notify Moderator  
Jqtp
Member


Reged: 08/03/08
Posts: 46
Re: Connect to QC in VBA, update status for testcase ? [Re: Krrishna]
      #511196 - 08/24/08 05:11 PM

Hi Krishna,

Dont HiJack threads...!

Jaya.

Edited by FordsRock (08/24/08 07:35 PM)


Post Extras: Print Post   Remind Me!   Notify Moderator  
RajeevUpadhyay
Newbie


Reged: 03/25/09
Posts: 2
Re: Connect to QC in VBA, update status for testcase ? [Re: Jqtp]
      #558868 - 03/25/09 02:43 AM

Hi Krishana,

I have the same requirement. I would appriciate if you can guide me in this or can share your code for my reference.

Thanks in advance,

Rajeev


Post Extras: Print Post   Remind Me!   Notify Moderator  
rscholz660
Super Member


Reged: 12/05/06
Posts: 1556
Loc: Germany, Dresden
Re: Connect to QC in VBA, update status for testcase ? [Re: RajeevUpadhyay]
      #558870 - 03/25/09 02:47 AM

you have to use the Run-object AND the StepFactoryObject to do this...

1.) create a new run
2.) set status for each step of your test in the new run
3.) set the test status after all

look into the ota api reference guide how to implement it in VB

--------------------
http://qcmt.pc-polis.de

de omnibus dubitandum

For all Questions: Please be sure to take a look at the QTP Manual before posting any Questions, thanks for doing this


Post Extras: Print Post   Remind Me!   Notify Moderator  
abaya1423
Newbie


Reged: 03/11/08
Posts: 7
Re: Connect to QC in VBA, update status for testcase ? [Re: Krrishna]
      #568573 - 05/12/09 10:57 AM


Hi Krishna,

I defenitly need your help in this regard.
I have the same requirement in my project to execute the testcases from Excel. Please reply with the code that you are using or send me any sample file you have.

Your help would be much appreciated. If you want to send through email, please do so anandjames.antony@gmail.com

Regards,
Anand


Post Extras: Print Post   Remind Me!   Notify Moderator  
Mayoo
Newbie


Reged: 11/28/08
Posts: 14
Re: Connect to QC in VBA, update status for testca [Re: abaya1423]
      #580169 - 07/15/09 01:23 PM

Hi Krishna . I am looking for the same code but all i want is to get the test name, status and excution date into excel. please send me the code nmayooran@gmail.com

thanks alot


Post Extras: Print Post   Remind Me!   Notify Moderator  
simsol
Newbie


Reged: 10/21/09
Posts: 3
Re: Connect to QC in VBA, update status for testca [Re: Mayoo]
      #597732 - 10/21/09 09:38 PM


Hi,

Was any one able to get this to work. I am looking to do the same thing. Having issues creating the run.
If any one has a working script please send to gotosreny at yahoo.com


Post Extras: Print Post   Remind Me!   Notify Moderator  
Nandhini_Vimalan
Newbie


Reged: 02/10/10
Posts: 1
Re: Connect to QC in VBA, update status for testca [Re: simsol]
      #613337 - 02/10/10 09:18 AM

Hi Krishna,

I am looking for same solution. Can you please share the code to me?

Thanks in advance

Edited by Tarun Lalwani (02/10/10 09:41 AM)


Post Extras: Print Post   Remind Me!   Notify Moderator  
Jonty
Super Member


Reged: 01/17/07
Posts: 1267
Loc: India
Re: Connect to QC in VBA, update status for testca [Re: Nandhini_Vimalan]
      #613472 - 02/11/10 04:31 AM

Can people refer OTA guide that comes along with QC?

Expecting a ready code would not help anyone.

Rscholz660 has already provided the flow of the code at a high level
Also looking into the QC/TD forum and for OTA would solve the purpose.

--------------------
Cheers
Jonty..
-- Here to Learn and share ---


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 59 anonymous users are browsing this forum.

Moderator:  IanFraser, Rajkumar_Rajangam, thorwath, TReddy, AJ, Tarun Lalwani, mwsrosso 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 8429

Rate this topic

Jump to

Contact Us | Privacy statement SQAForums

Powered by UBB.threads™ 6.5.5