Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    dramer
    @dramer
    yes, all my java files have inner class for testing
    Nick Tan
    @missedone
    em, ok, how about right click on "Test"
    "public static class Test", right click on this line
    dramer
    @dramer
    Screen Shot 2016-03-31 at 8.39.54 AM.png
    it's crazy
    run configuration goes to Maven
    Nick Tan
    @missedone
    em, be honest, could you re-org your test code, out side of isTestOsPathFactory, for example, make them in a new Test class "isTestOsPathFactoryTest.java"?
    dramer
    @dramer
    Screen Shot 2016-03-31 at 8.43.21 AM.png
    my testNG tests live in their own package
    iTest core code lives in it's own package
    don't worry about the stuff that does not complie
    I'm just trying to run as a java application the iTestOSPathFactory.java
    I will create a new project and start again
    thank you so much for all your help
    Nick Tan
    @missedone
    np, though actually i did not help solve your current puzzle
    dramer
    @dramer
    that is ok...... I don't want to abuse the help...I might need more support :)
    have a great day
    Nick Tan
    @missedone
    again, could you try to make the real test code in a new Java file, for example, "firstTest.java"
    so that iTestOSPathFactory.java won't have test case, it's just a factory
    then, you right click on "FistTest.java" to see if "Run As - Java Application" show up
    dramer
    @dramer
    that is right, just a factory that produces OS specific paths
    TestNG works fine in new projects
    new testNG tests work fine in the old project
    its old tests in the old project that does not work
    you gave me a suggestion let me check that
    JayaniSumudini
    @JayaniSumudini
    hi guys
    is possible to write unit testing for final class?
    Boris Sitsker
    @borick
    hi does anyone else get the concurrent modification exception when running testng via eclipse? seems to be cosmetic, using java 1.8
    i'm also wondering if anyone knows if there's testng chat room in general somewhere :)
    Nick Tan
    @missedone
    @borick , could you share the stacktrace for analysis?
    Ashok kumar
    @ashokkumarg
    When TestNG have the capability execute the selenium automation test cases. Do we require the ThreadLocal<WebDriver> to be implemented?
    ApekshaPradhan
    @ApekshaPradhan
    hi can anyone help me how to I create a function of webdriver wait ?
    public void waitfunction() throws IOException{
    try{
            WebDriverWait wait = new WebDriverWait(driver, 100);
            wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath("//android.view.View[@resource-id='com.pcloudy.appiumdemo:id/action_bar']")));            
            }catch(Exception e){        
            System.out.println(e);
                }
           }
    i have written this function and calling to m testcase but this function is failing
    Nick Tan
    @missedone
    @ApekshaPradhan , you can try to ask the question in testng google group: https://groups.google.com/forum/#!forum/testng-users
    AvrahamAtia
    @AvrahamAtia
    Hey all, It is possible to execute Test with dataProvider parallel as diff threads?
    I mean for as different classes!
    Because the next test changed the variables
    AvrahamAtia
    @AvrahamAtia
    ??
    Shubhojit Bhattacharjee
    @ShubhojitBhattacharjee

    Hi all,

    I am using Intellij to run my Maven-Selenium-Java-TestNG test cases

    I want to run my Test Cases in Command-Line. Upon entering following command :
    java -Dtestng.test.classpath="D:/ThoughtFocus_CreditServices_Testing/src/test/java/com/creditPlus;" org.testng.TestNG QA_Regression_Chrome_testng.xml

    I am getting following exception:
    Error: Could not find or load main class org.testng.TestNG

    Anthony J Zepezauer
    @anthonyz-davis
    Hi everybody, I'm trying to install testng in Eclipse for Windows. Installation info:
    Eclipse IDE for Enterprise Java Developers.
    Version: 2019-06 (4.12.0)
    Build id: 20190614-1200
    OS: Windows 10, v.10.0, x86_64 / win32
    Java version: 1.8.0_222
    but, i get error that it is not compatible with this version of eclipse. Others at my organization have the same version of Eclipse and have testng installed. Any idea what I can do to get it installed?
    image.png
    This is after dragging 'install' button from Eclipse marketplace
    Anthony J Zepezauer
    @anthonyz-davis
    image.png
    Anthony J Zepezauer
    @anthonyz-davis
    have now updated to:
    Eclipse IDE for Enterprise Java Developers.
    Version: 2019-12 (4.14.0)
    Build id: 20191212-1212
    OS: Windows 10, v.10.0, x86_64 / win32
    Java version: 1.8.0_222
    but still get same error
    Shubhojit Bhattacharjee
    @ShubhojitBhattacharjee
    Hi @/all anybody tried logging into Gmail recently via automation script? Looks like it could be done only thru Google APIs and not thru UI automation anymore.
    sb1987
    @sb1987
    Hi, I have downloaded Eclipse version 2020-06 and have downloaded TestNG version 7.3.0 but cannot import "import org.testng.annotations.Parameters;" or use the @Parameters annotation. Does anyone know why? I have been searching for a solution for hours!