function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
hmoh1920hmoh1920 

Rename test class in the production

Hi,

 

I want renamed my test class in production in order to deploy my code  sandbox.

my test class in the production is named  "test"  and in sandbox is named  "testClass"

 

how to rename

 

 

thanks.

Rajesh SriramuluRajesh Sriramulu

Hi

 

I think u can't edit the classes or trigger  in production better u have to deploy again with other name.

 

Regards,

Rajesh.

hmoh1920hmoh1920

yes, but since the name of my test class production is different from the name of the sandbox, it not let me deploy.

Rajesh SriramuluRajesh Sriramulu

Hi

 

I think it's not possible u have to compromise with the productuion name only. U just take the name of the test class in production and put in sandbox and deploy it.

 

hmoh1920hmoh1920

Hi,

 

 

I get an error "  testClass: Type is not visible: test    " when I deploys my sand box to the production.

 

 

"testClass" is the name of my  test class.

 

I renamed my class test with "test" but I got an error at this level "Test.startTest();" in the code of my  test  class. this error is " Methode does not exist or incorrect signature: Test.startTest()".