ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /C:/Users/PoojaPatange/eclipse-workspacepractice/webAutoTest/src/main/java/webAutoTest/CitrussTV/UAEArabicCODClass.java:[19,18] package org.testng does not exist [ERROR] /C:/Users/PoojaPatange/eclipse-workspacepractice/webAutoTest/src/main/java/webAutoTest/CitrussTV/UAEArabicCODClass.java:[20,18] package org.testng does not exist [ERROR] /C:/Users/PoojaPatange/eclipse-workspacepractice/webAutoTest/src/main/java/webAutoTest/CitrussTV/UAEArabicCODClass.java:[21,30] package org.testng.annotations does not exist [ERROR] /C:/Users/PoojaPatange/eclipse-workspacepractice/webAutoTest/src/main/java/webAutoTest/CitrussTV/UAEArabicCODClass.java:[22,30] package org.testng.annotations does not exist [ERROR] /C:/Users/PoojaPatange/eclipse-workspacepractice/webAutoTest/src/main/java/webAutoTest/CitrussTV/UAEArabicCODClass.java:[23,30] package org.testng.annotations does not exist [ERROR] /C:/Users/PoojaPatange/eclipse-workspacepractice/webAutoTest/src/main/java/webAutoTest/CitrussTV/UAEArabicCODClass.java:[24,30] package org.testng.annotations does not exist [ERROR] /C:/Users/PoojaPatange/eclipse-workspacepractice/webAutoTest/src/main/java/webAutoTest/CitrussTV/UAEArabicCODClass.java:[25,39] package com.relevantcodes.extentreports does not exist [ERROR] /C:/Users/PoojaPatange/eclipse-workspacepractice/webAutoTest/src/main/java/webAutoTest/CitrussTV/UAEArabicCODClass.java:[26,39] package com.relevantcodes.extentreports does not exist [ERROR] /C:/Users/PoojaPatange/eclipse-workspacepractice/webAutoTest/src/main/java/webAutoTest/CitrussTV/UAEArabicCODClass.java:[27,39] package com.relevantcodes.extentreports does not exist [ERROR] /C:/Users/PoojaPatange/eclipse-workspacepractice/webAutoTest/src/main/java/webAutoTest/CitrussTV/UAEArabicCODClass.java:[35,9] cannot find symbol symbol: class ExtentReports location: class webAutoTest.CitrussTV.UAEArabicCODClass [ERROR] /C:/Users/PoojaPatange/eclipse-workspacepractice/webAutoTest/src/main/java/webAutoTest/CitrussTV/UAEArabicCODClass.java:[36,9] cannot find symbol symbol: class ExtentTest location: class webAutoTest.CitrussTV.UAEArabicCODClass [ERROR] /C:/Users/PoojaPatange/eclipse-workspacepractice/webAutoTest/src/main/java/webAutoTest/CitrussTV/SendEMailcitruss.java:[5,1] package javax.mail does not exist [ERROR] /C:/Users/PoojaPatange/eclipse-workspacepractice/webAutoTest/src/main/java/webAutoTest/CitrussTV/SendEMailcitruss.java:[6,1] package javax.mail.internet does not exist [ERROR] /C:/Users/PoojaPatange/eclipse-workspacepractice/webAutoTest/src/main/java/webAutoTest/CitrussTV/UAEArabicCODClass.java:[317,31] cannot find symbol symbol: class ITestResult location: class webAutoTest.CitrussTV.UAEArabicCODClassenter image description here
0
votes
its not allowingme to post images , Actually i have application its in arabic language dnt have english code i have used arabic sentence in my java code for comparison if i m running from ecplise its giving correct result. when im trying to run from cmd its giving above compilation error
– Pooja Pathange
Please download testNG from eclipse market place
– Ankur Singh
@AnkurSingh, but she is able to run from eclipse. Isn't that should already be there?
– eduPeeth
@PoojaPathange, Can you paste the testng dependency that you have in your POM?
– eduPeeth
yes im able to run from eclipse dnt have any issue while running from eclipse. i have issue only running in command promt . and jenkins build also failing ,can any one plz suggest me on this - i think this issue mainly comming becz of im using arabic language in code compilation error also indicated same code line error - if (shippingText.equals("عفواً, لا تتوافر أسعار لهذا الطلب في الوقت الحالي")) { my code , i dnt have any other option complete app in arabic no english
– Pooja Pathange
1 Answers
1
votes
Install TestNG in eclipse as below:
- Eclipse --> Help --> Eclipse Marketplace
- Search TestNG --> Search result shows "TestNG for Eclipse"
- Install
After the installation, try to import as below:
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
It should work fine without any compilation errors