Skip to main content

Steps to Create TestCase AMLACTGLIBMAE




1. Go to SearchPage and goto function gotoAMLACTGLIBMAE there find the element new Request and clik on the new Request for the AMLACTBLIBMAE

2. com.wokon.pages.actions.amlactglibmae
3. Inside the above package create the class --> AMLACTGLIBMAERequestCreation.java
4. Create package --> com.workon.pages.locatos.amlactglibmae 
5. Inside the above package create a class --> AMLACTGLIBMAERequestCreationLocators.java


6. Now to got src/test/java --> com.workon.testcases.generic

7. Create the testcase class ---> TestCase_AMLACTGLIBMAERERequestCreation.java

8. Now go to com.wokon.pages.actions.amlactglibmae.AMLACTGLIBMAERequestCreation.java
create the constructor and initialize the locator class using the 
 
--> AjaxElementLocatorFactory and PageFactory.initElements

9. Now find all the locators needed to create the request and store it in a sublime text file

10. Move all the locators to the locators file 

11. Go to Testcase --> BeforeClass and AfterClass and @Test 
12. Create the test for amalactglibmaeRequestCreation --> create the DashboardPage object
13. gotoSearchbox --> gotoSearchPage --> call the method for request creation
14. write something in the Request Creation file and test it is working fine

15. Now Start working on the RequestCreation Java class and finish the request creation

16. Take the code to delete an item from STGA
17. Take the Approver code from STGA or any other applciation
18. Test complete maven clean test
19. create jar file and test it is working as JAR file too.

Comments

Popular posts from this blog

Clean Code Sonar Lint Java

Coding Guidelines 1. Sections of code should not be commented out (java:S125) CODE_SMELLCode smellMAJORMajor Programmers should not comment out code as it bloats programs and reduces readability. Unused code should be deleted and can be retrieved from source control history if required. 2. Standard outputs should not be used directly to log anything (java:S106) CODE_SMELLCode smellMAJORMajor When logging a message there are several important requirements which must be fulfilled: • The user must be able to easily retrieve the logs • The format of all logged message must be uniform to allow the user to easily read the log • Logged data must actually be recorded • Sensitive data must only be logged securely If a program directly writes to the standard outputs, there is absolutely no way to comply with those requirements. That's why defining and using a dedicated logger is highly recommended. Noncompliant Code Example System.out.println("My Message");  // Noncompliant Complia...

Xpath toughest

1. //span[contains(text(),'Please enter the comments!')]//following-sibling::div//input//following-sibling::textarea Some of the other Xpaths are 1. search RBGA //clicking on the new request //a[@title='Request a new workflow for RB General Approval Form']         @FindBy(xpath="//body[contains(@class,'ext-safari')]/form[contains(@name,'workOnIssueForm')]/table[contains(@class,'jiraform maxWidth')]/tbody/tr/td[contains(@class,'rb_formArea')]/fieldset[contains(@class,'rb_WorkON_FieldSet')]/table/tbody/tr/td/div[contains(@class,'rb_WorkON_FieldContainer')]/div[contains(@class,'rb_WorkON_FieldValueArea rb_WorkON_FieldValueArea_create rb_WorkON_ValueArea_Wide')]/table[contains(@class,'workonstdtable')]/tbody/tr/td/input[1]")     public WebElement tickMark;         @FindBy(xpath="//body[contains(@class,'ext-safari')]/form[contains(@name,'workOnIssueForm')]/table[contains(@class,...