Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» why do i get this error
Sun Apr 23, 2017 9:43 pm by anbarasi

» wait property
Sun Apr 23, 2017 12:50 pm by anbarasi

» What is the use of Selenium Remote Control
Fri Apr 21, 2017 7:24 pm by azharuddin

» How can I fix it? TCP PORT Exhaustion
Wed Apr 19, 2017 3:29 pm by JohnSnow

» Difference between QTP, Selenium and Silk test
Wed Apr 19, 2017 2:30 pm by Basilios Will

» Locator for google document
Tue Apr 18, 2017 10:01 pm by SergeyK

» I encountered a mistake: Couldn't register this node
Sat Apr 15, 2017 9:06 pm by skyshine725

» Current version tutorial for just creating a browser instance - Visual Studio
Fri Apr 14, 2017 2:47 am by KilpAr

» cant able to select drop down otions
Thu Apr 13, 2017 6:08 pm by anbarasi

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Unable to execute Logout class file

View previous topic View next topic Go down

Unable to execute Logout class file

Post by kanuri on Wed Oct 03, 2012 11:20 am

Hi friends,

I am developing Data driven frame work for login and logout of an application..
Here my problem is i wrote code login and logut by using junit framework. Login class file is gets executed and logout class file is not executed. Here i am not getting any error..

Please tell me any one why my logout file is not executed..

here i included my code..

Code:

TestSuiteRunner.class
package Tests;

import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;

@RunWith(Suite.class)
@SuiteClasses({LogIn.class,LogOut.class})

public class TestSuiteRunner
{
    public static void main(String[] args)
    {
        // TODO Auto-generated method stub
    }

}

Login.class

package Tests;

import java.io.IOException;
import org.junit.Before;
import org.junit.Test;
//import org.openqa.selenium.By;

import Util.TestUtil;

public class LogIn extends TestBase
{
    @Before
    public void beforetest() throws IOException
    {
        Init();   
    }
    @Test
    public void loginTest() throws IOException
    {
        String URL=CONFIG.getProperty("testSuiteName");
        System.out.println(URL);
        driver.get(URL);
        driver.manage().window().maximize();
        TestUtil.LoginSalesForce();
       
    }
}

Logout.class
package Tests;

import java.io.IOException;

import org.junit.Before;
import org.junit.Test;
//import org.openqa.selenium.By;

import Util.TestUtil;

public class LogOut extends TestBase
{
    @Before
    public void beforetest() throws IOException
    {
        System.out.println("IO Exception");
       
            initialize();
    }
   

   
    @Test
    public void logout()
    {
        System.out.println("IO Exception1");
        TestUtil.logout();
        System.out.println("Page is not unable to logged out.");
    }

}


I wrote the code for login and logut in a seperate class file .. i was accessing login and logout functions from that class file..

Any one please tell me why my logout class file is not exected..

kanuri

Posts : 6
Join date : 2012-09-28
Age : 28
Location : Hyderabad

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum