Skip to main content TDX, the developer conference for the AI agent era is happening now. Watch live on Salesforce+ for exclusive digital content, a revolutionary keynote, and more.
error

Realizamos un giro incorrecto. Inténtelo de nuevo.

i cant find the errors for this  topic

here's the courses : Premiers pas avec les tests unitaires Apex | Salesforce Trailhead

Errors on my editor : 

This class name's value is invalid: TemperatureConverterTest. Provide the name of an Apex class that has test methods.

 

#Trailhead Challenges

5 respuestas
  1. 24 oct 2024, 3:15 p.m.

    Hello @El mehdi AIT TALBALI,

    The error "This class name's value is invalid: TemperatureConverterTest" usually means that the class doesn't have any valid test methods or the name is not correctly set up.

    To resolve this:

    1. Check Class Name: Ensure the class is named TemperatureConverterTest exactly as expected, including correct capitalization.
    2. Add Test Methods: Make sure the class contains test methods annotated with @isTest. For example:

    @isTest

    private class TemperatureConverterTest {

    @isTest

    static void testCelsiusToFahrenheit() {

    // Your test logic here

    }

    }

    Save and Compile: After making changes, save and compile the class again. 

     

    Regards

    Sunny Patwa

  2. 28 oct 2024, 9:26 a.m.

    @El mehdi AIT TALBALI try to use English as a main language for your Trailhead website and for your SF Org.

     

    Also too, you can compare your steps with steps provided in this video

     

    Sincerely, 

    Mykhailo Vdovychenko 

    Bringing Cloud Excellence with IBVCLOUD OÜ 

0/9000