ATF with 'New Project Workspace' UI to verify 'Key Milestones'

gagneet
Tera Expert

I am working on ServiceNow ATF test creation for the 'Project Workspace' UI. I have created a Project and a Sub Project, added tasks with key milestones and milestones in them.


Next, I have created a 'Status Report' in the project and am trying to view and check/verify if all the 'Key Milestones' for both Project and Sub Project are showing up in the 'Status Report'. As this is the 'New Project Workspace' UI, my ATF test window fails to open it in the UI.

 

How can I check if the 'Key Milestones' for the Project & Sub Project are showing up? Does ATF have a way to enable this? 

 

As, it seems like I am encountering a limitation with ServiceNow's Automated Test Framework (ATF) when working with the 'New Project Workspace' UI.  Could this be due to the 'Framebuster Issues' with the ATF runner? 

OR, do I need to create a Custom Script test steps in ATF to interact with the 'New Project Workspace' UI.

 

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @gagneet 

 

No , currently ATF did not support or collaborate with projects.

 

@Oluyinkaoginni something your inputs again.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hi @Dr Atul G- LNG,

 

Thank you for the response on this. 

For 'Projects', I have been able to create the ATF test steps, it does have all the required Project steps and I have even created the 'Status Report' for it. My issue is when I 'View' the report, the ATF Runner does a back-flip and does not allow me to proceed further, as that goes into the domain of 'UI Builder' (and ATF has known challenges with certain UI components, especially those built using the UI Builder or newer frameworks).

 

I have used a custom script to navigate it, but am facing issues with the script not able to recognize the tables and output values in the script to fetch data from the 'project_status' table:

(function(outputs, steps, stepResult, assertEqual) {
    // Find your project
    var project = new GlideRecord('pm_project');
    project.addQuery('name', 'Your Project Name'); // Or use another query
    project.query();
    
    if (project.next()) {
        // Store the sys_id as an output variable
        stepResult.setOutput('project_sys_id', project.sys_id.toString());
    }
    
    // Find your sub-project similarly
    var subProject = new GlideRecord('pm_project');
    subProject.addQuery('name', 'Your Sub Project Name');
    subProject.query();
    
    if (subProject.next()) {
        stepResult.setOutput('sub_project_sys_id', subProject.sys_id.toString());
    }
    
    // Find or create the status report
    var statusReport = new GlideRecord('pm_status_report');
    statusReport.addQuery('project', project.sys_id);
    statusReport.setLimit(1);
    statusReport.query();
    
    if (statusReport.next()) {
        stepResult.setOutput('status_report_sys_id', statusReport.sys_id.toString());
    }
    
    return true;
})(outputs, steps, stepResult, assertEqual);

 

Will wait and see if anyone has a better solution to it 🙂

 

Thanks,

Gagneet

Hi @gagneet 

 

Script is not my area, so cant help much here.

 

@AshishKM can u helo here,

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Oluyinkaoginni
ServiceNow Employee
ServiceNow Employee

Hi @Dr Atul G- LNG and @gagneet , apologies for 'very-late' response.
This limitation will be resolved as part of the new workspace testing authoring experience we're releasing for the upcoming family release.