+ 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.

SRajesh8SRajesh8

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.

SRajesh8SRajesh8

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()".