Nullpointer exception on 'RunAs' via TestNG | Selenium Forum
M
Posted on 03/12/2015
Nullpointer exception on 'RunAs' via TestNG.

Please help me resolve it.

Refer attachment.

M
Replied on 03/12/2015

try this


Go to help
Install New Software
Work with: Juno
Programming languages (expand it)
Install Java Development Tools
Restart


M
Replied on 03/12/2015

sir,

where's programmiing languages option sir ?
PLease guide me through...

Responsive image

M
Replied on 03/12/2015

I am getting Nullpointer exception on run as via TestNG ..

import org.testng.annotations.Test;

public class Sample_test {

@Test
public void testApp(){
System.out.println("my first test");
}

}

Is any when can help?
Thanks in advance


M
Replied on 03/12/2015

try this first.


Help
Install new software...
What is already installed?
Select the TestNG M2E software and click uninstall

and then install testng again.

goto install new software
http://beust.com/eclipse


M
Replied on 04/12/2015

[quote="qtpselenium.supp0rt@gmail.com":1axze2im]try this first.


Help
Install new software...
What is already installed?
Select the TestNG M2E software and click uninstall

and then install testng again.

goto install new software
http://beust.com/eclipse[/quote:1axze2im]


M
Replied on 05/12/2015

I was getting the same error message while running a program (not with TestNG). I followed the steps mentioned in the above post and it resolved the issue.
Thanks!


M
Replied on 06/12/2015

Hi,

I have installed Eclipse for java ee developers, Mars 4.5 version. Installed TestNg from help with http://beust.com/eclipse. Added TestNG library and imported TestNg annotations. When I select Run as TestNG, I'm getting Nullpointer exception. Tried to uninstall as per above instructions and install again but still getting same error. Could you please help?


M
Replied on 06/12/2015

Got it. while installing I just selecte Testng and unchecked TEstng m2e optional. It worked.