
\documentclass[12pt]{report}
\usepackage{hyperref}
\usepackage{xepersian}

\title{تست}
\author{نویسنده}
%\date{}                                           % Activate to display a given date or no date

\begin{document}
\maketitle
\tableofcontents
\chapter{فصل تست}
برای تست من \lr{english} می نویسم.
\section{تست \lr{This is a test section}}
برای تست من \lr{english} می نویسم.
\subsection{تست ۲ \lr{This is a test subsection}}

\end{document}  