Class SuiteResult

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Class SuiteResult

Anda Spa
Hello,

In the documenation of testng for the class SuiteResult there is a method getTestContext()  but in testNG 6.11

http://static.javadoc.io/org.testng/testng/5.13/org/testng/SuiteResult.html

if you write 

 for (SuiteResult suiteResult : suiteResults) {
            context = suiteResult.getTestContext();

}

I got a error, but if you define

 for (ISuiteResult suiteResult : suiteResults) {
            context = suiteResult.getTestContext();

}

it is correct.

So, what is the problem with this method: getTestContext()?

Thanks,



--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Class SuiteResult

Krishnan Mahadevan

Not sure what is your question.

 

In the latest released version of TestNG (6.14.3 as of today), org.testng.SuiteResult is an implementation of the interface org.testng.ISuiteResult.

 

  • org.testng.SuiteResult – This is now a package only visible class. It’s not supposed to be used outside of TestNG.
  • org.testng.ISuiteResult – This is a publicly visible interface.

 

The method ITestContext getTestContext() is still part of the above interface.

 

Thanks & Regards

Krishnan Mahadevan

 

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"

My Scribblings @ http://wakened-cognition.blogspot.com/

My Technical Scribbings @ http://rationaleemotions.wordpress.com/

Reply-To: <[hidden email]>
Date: Wednesday, March 21, 2018 at 4:11 PM
To: testng-users <[hidden email]>
Subject: [testng-users] Class SuiteResult

 

Hello,

 

In the documenation of testng for the class SuiteResult there is a method getTestContext()  but in testNG 6.11

 

http://static.javadoc.io/org.testng/testng/5.13/org/testng/SuiteResult.html

 

if you write 

 

 for (SuiteResult suiteResult : suiteResults) {

            context = suiteResult.getTestContext();

 

}

 

I got a error, but if you define

 

 for (ISuiteResult suiteResult : suiteResults) {

            context = suiteResult.getTestContext();

 

}

 

it is correct.

 

So, what is the problem with this method: getTestContext()?

 

Thanks,

 

 

 

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
[hidden email].
To post to this group, send email to
[hidden email].
Visit this group at
https://groups.google.com/group/testng-users.
For more options, visit
https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.